mercredi 1 avril 2015

Facebook real time update for user and page

I have setup realtime facebook update for both user and page. Whenever user updates his status, I get request on my server about the change. The data I get from facebook post call is like below.



{
"object":"user",
"entry":[
{
"uid":"10152689315982483",
"id":"10152689315982483",
"time":1427362347,
"changed_fields":[
"feed"
]
}
]
}


But I did not get any call from facebook when admin of a page update its status.


I followed the below steps to get the realtime facebook update.




  • Subscribe user/page to get updates with access token.


    http://ift.tt/1E3y3NY




  • To get the list of subscription


    http://ift.tt/1NbUIsT




From this call I get both user and page data.



{
"data": [
{
"object": "user",
"callback_url": "https://serverurl/realtime.php",
"fields": [
"feed"
],
"active": true
},
{
"object": "page",
"callback_url": "https://serverurl/realtime.php",
"fields": [
"feed"
],
"active": true
}
]
}


I also added the app to page-tab but still not getting the updates for page. Could anyone tell me what I am missing?


Aucun commentaire:

Enregistrer un commentaire