I'm using facebook graph API to "like" some content on other FBPage. But when I do it there is no notification on users wall. So my question is: Do I have to post to the wall something like: "User xxxx likes yyyy" separately?
Did you check the activity Log ? It must be showing there?
Some times it does happen that likes do not show immediately or even not at all on the timeline. Happened once or twice while testing of my canvas app.
Related
the fan page 335667609918222 count is 2 but when i tried to access the below url https://graph.facebook.com/335667609918222/likes?access_token=CAAG4yxdE1UsBAFu8L0ZCdlFWWeJy2hCOnYtr9ZB42LvbqlqsPs1PAwHfZB3RIMVGXFcmwDMR6xVTvCjU1Pp3ler6FG17SGzY6lW5frZBaaJaUsfksHNnC3jvl9sjNgaTXi22C9VQsw95VdRWHluLdfy5fai0ij0yBNMmp64dObycqumuCBeO3O0JQj8q8STBRS9JZA2wTVQZDZD I am always getting the empty data.
Please help me out
The Facebook Graph API doesn't support that.
You can only query: "Does this user like Facebook Page X?", not "Give me a list of all users that Like Facebook Page X".
Also, your access_token is in the URL, you should probably keep that private.
Checking to see if anyone here can help - I have a bunch of users on my site having this problem..
Testing my own account after getting failure issues from several of my website's members, I discovered that Likes are not being recorded accurately to my profile. While logged in, I liked a page (this is just an example, the same problem happens on multiple pages). It was:
http://www.imdb.com/name/nm1869946/
If I look this page up with FQL or on the Graph API Explorer, I can find the ID for this is:
10150237928985504
If I look at my list of Likes, by going to graph.facebook.com/me/likes it does not show up.
When I enter this in the Graph API Explorer:
me/likes/10150237928985504
I get:
{
"data": [
]
}
HOWEVER - if I go to my Facebook Profile I can see the Like there. The page has been added to my news feed and the link shows up in my list of Likes.
So why is the fact that I Liked the page not available via the Graph API or FQL?
Thanks very much!
I'm developing an app for iPhone(ios5), where I need the information of the posts I made highlighted in my facebook profile. Using facebook-graph api its possible to get all the data of user profile but is there any way I can get highlighted posts data ? For example I want to count and keep track of how many posts I highlighted in fb timeline.
You can use [pageid]?fields=posts.fields(timeline_visibility)
Each highlighted post will have timeline_visibility set to "starred"
i've noticed that there are some photos that doesn't appear in any albums. This photos are published by fan on a facebook page.
Is there any way to get this photos by the API ?
The API call /feed returns all the posts of the wall, but many of this photo that i seen in the wall on browser doesn't appear in the response of the API.
Any idea ?
Try using below
https://graph.facebook.com/<YOUR_PAGE_NAME>/picture
Hope this help
Kaushik
I use
graph.facebook.com/PAGEID/photos
Permissions Needed: user_photo_video_tags or friends_photo_video_tags.
refer to: http://developers.facebook.com/docs/reference/api/user/ user photos
http://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fphotos
I have a live example of this usage is you wish to test. it is an iframe plugin that feeds the photos for a page. "is not set up for users".
Just replace "anotherfeed" page user name with any page.
https://anotherfeed.com/api.beta.php?type=photos&pageid=anotherfeed&width=350&height=500&limit=20&offset=0
OK, apologies for the verbose title. Let me give the background in a bit more detail.
My website allows my registered users to create new pages, each of which has its own unique URL. Each page has a Facebook "Like" button on it. I've already implemented Facebook Open Graph API meta tags so that the pages are proper open graph objects, and when some other visiting Facebook user "likes" the registered user's page, a post appears on that Facebook user's wall saying they have liked the page. The Facebook Like widget also displays the number of "likes" that page has received as normal. So far, so good.
What I want to do is allow my registered users to be able to communicate back to the Facebook users who have liked their page. The community of "likers" for a page is a potentially valuable social media resource to the registered user, if only they could communicate back.
I am aware of the "admin page" link you get beside the Like button, which can be used to post to these people, but that is not an option for my registered users as they have no privileges in relation to the Like button.
What I want to do, if possible, is setup a form to capture the registered user's message back to the Facebook users, and then my website sends the message on their behalf, without having to ask for any extra privileges from the Facebook users.
The following Facebook documentation pages seem to say this is possible, but having followed the Open Graph API documentation, I can't get it to work as described - http://developers.facebook.com/blog/post/465/ and http://developers.facebook.com/docs/reference/api/ ("Publishing" subsection). I can get the access token correctly in the first request, and plug that into the second request to do the post, but that doesn't seem to do anything and doesn't return any error.
Since it doesn't work for me, I'm wondering if this is possible as described, or do I need to get some sort of extra permission to do this? I've seen reference to offline_access permission but as I'm new to this stuff I am not sure how it would fit in. If I have to get the Facebook users to grant permissions, this is not going to work as envisaged.
Any thoughts would be most helpful.
The short answer: No, You will never been able to post on someones wall as another user.
The long answer:
You could try to ask for offline access but then you are asking the user to hand over all their facebook data and give you access todo whatever you like their accound, so that is not likely to happend.
The next problem is that they have to be friends to be able to post on each others walls.
Thats why Pages was implemented, so that organisations could announce/talk with the people interested.
However if you have created the like button correctly and give the pages correct meta data, you are able to post to user who have liked it.
Scroll down to Publishing:
http://developers.facebook.com/docs/opengraph/
Just add a form for your user and let your system publish to the correct page, you probably will need a offline token from your own account or similar to use on the server.
Another more complex way could be to generate a facebook page for each page you have on your server.
When the user creates a page on your system a page is created on facebook but as your app as admin.
And when another user likes the page they like the facebook page, hence you have the possibility to post in that page and speak to the user who liked it. (whooa thats a mouthfull).