Permalink
Browse files

fixed impression

  • Loading branch information...
1 parent 894ee39 commit 46a2520b447b3c9808cc827b55a714e6bd0316bf @prabirshrestha prabirshrestha committed Apr 15, 2013
Showing with 8 additions and 7 deletions.
  1. +8 −7 fb.js
View
@@ -583,18 +583,19 @@
//Response: A pixel image.
pingFacebook = function (appId) {
- try {
+ var payload = {
+ resource: 'thuzi_nodejssdk',
+ appid: appId,
+ version: version
+ };
+ try {
request({
method: 'POST'
, uri: 'https://www.facebook.com/impression.php'
- , json: {
+ , form: {
plugin: 'featured_resources',
- payload: {
- resource: 'thuzi_nodejssdk',
- appid: appId,
- version: version
- }
+ payload: encodeURIComponent(JSON.stringify(payload))
}
}
, function(error, response, body) {

0 comments on commit 46a2520

Please sign in to comment.