Is it possible to retrieve a list of facebook posts and display them manually, that is, not by including some external element from facebook? I'd like something like an xml or json feed, containing my posts, so that I can display them on my site however I want.
This link shows how to use Facebook's SDK to get a user's feed...and then you can do with it as you please!
Related
I am trying to fetch all posts from a fan page using Graph API. I can do it in many pages using {page-id}/posts, but it does not work in all cases (example, facebook.com/cocacola). If I use {page-id}/feed, I can get it all, but I will get many user posts too. I could do it with FQL, but since FQL is not going to be supported anymore, I don't want to use it.
I want to get everything the page posts, even if it is a link, photo or share.
Something like this:
graph.facebook.com/{page-id}/feed?from.id={page-id}
The edge /{page-id}/posts will return all posts made by the page.
[1] https://developers.facebook.com/docs/graph-api/reference/v2.0/page/feed
I was looking out the solutions but no luck for getting the list the users who likes your Facebook page. I found out the following solutions over internet but all have some limitations. Please suggest??
Facebook provides like table where we can provide object name to get the list of users who likes your Album,Photo etc. But I didn't find to get this work for a Facebook Page. It is working for photo,album etc.
Second options with page_fan table but i notice that only the uid field is index able so you need to know the user id to search it and not the page_id.
Finally i added the Like Box in my applications where I am showing the list of user with their profile picture but here is also limitation with face book like box that i can't see the entire list of the users who likes the Facebook Page. It is showing only 20-30 in the Like Box. If i was trying to change the iFrame div CSS to overflow:auto but their is no success because i think iFrame with other domain url doesn't allow the same.
Can someone help me out how i can get the all Facebook User's profile photos who likes my Facebook page with any 3 options or let me know if any other options.
I,m trying to create a website where users can login with their facebook login and can see their news feed , like comment and update their status. I have seen lots of documentation about it and also was able to retrieve some info using php-sdk . But all the info I retrieved is got as array and I don't know how to display them just like facebook ? Can anyone help me please ?
Thanks
You need to iterate over the array in php and insert each element of the array into an html tag. When your html renders in a user's browser, the data will be displayed.
Use the array returned to make the webpage by inserting necessary items into html tags and use css to style them..
You can find what you look for here: http://25labs.com/tutorial-integrate-facebook-connect-to-your-website-using-php-sdk-v-3-x-x-which-uses-graph-api/
I've been trying to use the Like button generator to get a Like button for some content on my fan page: http://www.facebook.com/photo.php?fbid=363385833679921&set=a.314588171893021.85085.305618229456682&type=1
What I want to do is show the likes this photo got on Facebook in the like button on my site and vice versa.
This seems to work for the actual fan page url but doesn't work for individual photos (haven't tested other objects).
You are able to see the likes the object on Facebook got through the graph API call: http://graph.facebook.com/363385833679921. So shouldn't that be available on non-Facebook sites as well?
Anyone know a solution to this without having to make a custom handler to show and post likes on site?
Why don't you just use the API to read the comments and likes on the object? Any user's access token will work if that user can see the object
I am currently planning a facebook integration on our website. In the example given at the Getting Started page (http://developers.facebook.com/docs/opengraph), you can see that I like "The Rock" on Imdb. If I were Imdb, would it be possible to query the user object to get all likes on Imdb? For example would it be possible for them to build a page like "these are the films where you clicked the like button on our website"?
Thank you for your answer!
To get the likes for a page you need to do this:
use http://graph.facebook.com/
this will return a JSON object be default. Just snatch the likes property off it.
http://graph.facebook.com/wearex3 for example
But what you are asking requires you to request access to the user's data and from there get all the likes.
http://developers.facebook.com/docs/opengraph and http://developers.facebook.com/docs/guides/web are what you want to read.