With the help of graph API getting Public Facebook feed but it's doesn't show location and place detail, Need to display only those feed which is near by user current location.
For Eg, If user is in Atlanta, USA than the user should get only those feed which are in Atlanta, USA.
We also tried with "https://graph.facebook.com/facebook/feed?&location=33.7677129,-84.420604" it's doesn't effect the response.
someone please guide me.
That's not possible. There is not functionality to filter a page/user feed by location. You should have a look at the docs.
Furthermore sending requests to /facebook/feed is only returning you the posts from the Facebook Page.
See
https://developers.facebook.com/docs/graph-api/reference/v2.4/page/feed#read
Related
I've searched a lot, but I did not get any full information.
I need to get all images which are posted to a specific fb page by users. And do I really ned to get that app reviewed? I only need this application during an exhibition over a weekend.
The fans take a picture at our booth and post it on our timeline. These images are to be displayed automatically on a screen.
How do I get to the pictures via the Facebook API?
update:
My first move was with the following:
graph.facebook.com/v3.1/[pageid]/feed?fields=picture,message,from
Since I need only the posts from others, I'm going to filter the response object.
Is there a better solution?
Okay, so PAGE-ID/visitor_posts?fields=picture,message did the trick!
I need to read timeline feed in facebook public pages. I have used syntax to get the feed from timeline:
https://graph.facebook.com/v2.3/DoveIndia?fields=id,name,picture,feed
It works well and returns the feed,when facebook page not have "Posts To Page".
When Page have "Posts To Page",it only returns all posted messages on page not timeline feeds.
Example of a request(Graph API Explorer tools):
https://graph.facebook.com/v2.3/jeep?fields=id,name,picture,feed
Please suggest how can read feed from timelines?
Thanks
Sameek
/{page-id}/posts shows only the posts that were published by this page.
Source: https://developers.facebook.com/docs/graph-api/reference/v2.3/page/feed
The feed of posts (including status updates) and links published by this person, or by others on this person's profile. There are other edges which provide filtered versions of this edge:
/{user-id}/posts shows only the posts that were published by this person.
/{user-id}/tagged shows only the posts that this person was tagged in.
All of these derivative edges share the exact same reading structure, however /feed should be used for all publishing purposes.
I searched for myself almost 2 hours, but I did not find any solution. Maybe you can help.
The Issue:
I went to http://www.mammut.ch/de/productDetail/101013950_v_5268_L/Nordwand-Pro-Jacket-Men.html and liked the product at the end of the page via the like button.
The product now appears in my activity feed. Norman likes , with description, URL and image.
If I now query the graph api with /me/likes I receive ALL THE FB PAGES I liked. But I do not receive the liked product. I tried out almost any GraphAPI Connection, but I was not able to receive the product from my activity feed.
I think the major difference is, that this actually is not a like, like a like on FB-Company/Band Page. But what is it, and how is it possible to receive these kind of information.
Thanks alot in advance.
I've studied Facebook API for several hours, and googled lots of pages. But I can not find the way get posts list just like my timeline on Facebook app.
I would like to make a Web app that show my timeline posts just like Flipboard. I found an API to get my "story" and "my friends list". But I can not even imagine how to retrieve my friend post that shown on my timeline.
Is it impossible to replicate my timeline on my web app? Only Flipboard can do that? Do you have any hint?
To access the current User's News Feed use the "User/Home" request as described in the API Documentation.
In order to gain access to the User's News Feed you will be required to gain the "read_stream" permission. For information on how to request the appropriate permission, read the Login, authorization and permissions section of the Getting Started guide.
The request to me/home will return an array of News Feed items, which are comprised of statuses, pictures, likes, etc. You can see an example of the result by using the Graph API Explorer.
Compare the results to your Timeline and they should be nearly identical (currently I believe Ads/Promoted Posts are excluded from the API)"
Play around with the Graph API Explorer:
https://developers.facebook.com/tools/explorer/?method=GET&path=me%2Fhome
I had to change the permissions within the App and specifically give myself 'read_stream' access, but once that was complete I was able to run a '/me/home' Graph API GET Request and return a representation of my timeline. Good luck!
You can get the timeline this way:
$fb = new Facebook('{config}');
$fb->setDefaultAccessToken('{getAccesstoken}');
$request = $fb->get('/me?fields=feed.limit(10000){link}');
//
$graphObject = $request->getGraphNode();
return $graphObject;
I know that it was previously possible to display your most recent Facebook statuses on your website as an RSS feed, but it seems they've changed their setup and I can't figure out where to find the feed anymore....
I saw some people searching for this a while ago, but since Facebook just released their new layout, I didn't know if this might have changed again.
Any help would be greatly appreciated.
Try this for a feed in JSON-format.
http://graph.facebook.com/[uid]/feed
Facebook appears to have killed all the public status feeds in the name of user privacy. The only way to fetch it is to build a facebook application that gets your status updates, and then associating your facebook account with that application to give it permission to access your status updates so it can put them somewhere else.
Thankfully, someone has already done that for us. Just go to http://apps.facebook.com/statusexport/ while logged in to facebook and grant the app permission. Then it will give you a public URL to an RSS feed of your status updates.
Just keep it simple... This is an easy way to load your latest status(es) using graph.facebook.com through curl / php. Includes a quick simple function.
Easiest way to load your latest facebook status
I found this site which you authenticate, and it will then give you a working rss feed.
I have found that it does have some limitations, but you can see it here:
http://www.fbrss.com
If you wan't to display status updates only, you can use:
https://graph.facebook.com/[uid]/posts
This URL will return a JSON string of user [uid]:s status updates.
To get your status feed, follow these instructions:
Log into Facebook
Go to http://www.facebook.com/notifications.php
Click the link titled "Your Notifications" at the bottom of the box to the right of the list of notifications
That will bring you to a feed of your notifications, which is not what you asked for. This url will be something like feed://www.facebook.com/feeds/notifications.php?id=XXXXXX&viewer= XXXXXX&key=YYYYYYYY&format=rss20
Change notifications.php to status.php in the URL (preserving all the URL parameters).
That should be a feed of your status updates.
Start at http://www.facebook.com/notes.php and click on the "My Friend's Notes" link. Change the friends_notes part of the url to friends_status, and you should be good to go.
Programmatically specifying user to query status updates for
(Note: This is a server-side solution)
It's possible the feed you're looking for has been deprecated for security purposes.
Alternatively facebook FQL on the Status table might provide an answer because it allows you to specify the user ID (for example, your own) for which to retrieve status updates, and a time frame can be specified to limit them as desired.
A raw fb FQL query example, for status updates:
select uid,status_id,message
from status
where uid in
(select uid2 from friend where uid1= uid)
AND time > {time in the last week}
The main FQL guide starts here.
Sample
Poking around the Internet you can pick up sample code of FQL code being called from PHP and other platforms.
PHP example:
<?php
$q = "SELECT name FROM user WHERE uid='$id'";
$query = $facebook->api_client->fql_query($q);
?>
The facebook client API library for your platform of choice can be downloaded and used to issue FQL statements.
--
There is also a Test Console hosted online for facebook developers to test API statements against their own account.
You can also use a RSS feed generator for your Facebook Statuses (or Photos) like the RSS Feeds application on Facebook.
It will help you generate a RSS feed for all your statuses and photos while maintaining the privacy modes.
Although, I am not a fan of the user interface the application has, but the functionality is what is awesome :)
Theres also anther way to do it..Which is simple and easy...its not an rss feed but a plugin can be developed to output as an rss...Theres a tutorial of it on http://Fourgefeed.com