It's possible to manually add a post to my wall for past and check "Hide from News Feed", but is there any way to post to my wall with "Hide from News Feed" option from my website with PHP?
By looking at the Graph API documentation, you can see that there is no such option for a Post. Moreover, if you retrieve a news feed from the Graph API, posts that were hidden are not present in the returned json. You can try it by querying the Grap API about your news feed, hide a post and query it again. If you compare the two jsons you will see that the hidden post is just not present in the second. So I would say that it is not possible.
Related
I have made an FB post on a page that I manage. The posted contained a link to a website I manage. FB has scraped the opengraph data from the website, and posted the data on the timeline of my page, as expected.
I have since edited the opengraph data on my website. I want to find a way to tell Facebook to refresh the opengraph data it read from my website in the existing post on my timeline. I do not want to delete the existing post, because it has lots of likes associated with it.
Is this possible?
Ok, I found it. Click on the timestamp associated with the post. This will take you to a view of the Facebook object. Click the down arrow menu activator in the top right. Select "More options". Select "Refresh share attachment". Done :)
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 have an app app1 which defines a custom Facebook action act1.
When a user performs this action to an entity (ntt1) in my app, I post to API /me/app1:act1 with URL to ntt1 as its param, so that a post is generated on user's wall saying User act1'ed ntt1 where ntt1 is a link to ntt1's view page (with open graph meta data on its header).
Users can comment or like on this wall post regularly.
Now I want to show users' comments on ntt1's web page as well to share the comments and likes between the Facebook wall and ntt1's view page.
I tried using the Comments social plug-in, but don't know what to put in the data-href to point to the action_instance_id of the wall post.
I know I can simulate a comments box on my page using the graph API (and I've already done so), but this is not making a good ux, because the users need to authorize to my application to view this page (so that the java script API can fetch the comments from the Facebook).
Have you tried just pointing the data-href attribute to
https://www.facebook.com/{user_name_or_id}/activity/{action-instance-id}
…? The docs for using actions say this is the URL you can use to “preview” the news feed story that this published action will generate (or rather has already generated, because without publishing the action first, you would not have an action-instance-id).
If you click on the “x minutes/hours/… ago” link for the feed story for one of your published actions, it should take you to a link that’s build using the same scheme.
what I mean is...
in facebook timeline mode,
tetris battle and glassdoor, those 2 fb apps post feed on the right hand side as picture below
http://imgur.com/RinJh
is it an original feed post?
how could I use api to post feed like this?
I'm not really sure if this is the right answer
but maybe it's a "meta tags" game, I mean facebook has multiple meta tags that you could add to your website and facebook uses to classify pages when it scrapes the web, check out step 2 in this page http://developers.facebook.com/docs/reference/plugins/like/
there's for example a tag that specifies the type of the page
and song is one of the allowed values (that maybe SoundCloud is using for it's pages)
is it an original feed post?
No, these are most likely Aggregations of Open Graph actions.
https://developers.facebook.com/docs/concepts/opengraph/aggregations/
Is there an API call, and if so, which call to get the 'posts to my wall from myself and others' on Facebook? It seems like it could be filtered out of the Facebook stream API, but it's not clear how that works to me.
This link seems to imply it's possible:
http://developers.facebook.com/news.php?blog=1&story=225
You want to do an FQL query like this:
SELECT actor_id, message FROM stream WHERE source_id = <user id> limit 50
You will probably want to select a few more fields, you can see what is available here: http://wiki.developers.facebook.com/index.php/Stream_%28FQL%29
Here it is.
Profile feed (Wall): https://graph.facebook.com/me/feed?access_token=...
https://developers.facebook.com/blog/post/465
You can publish stories to people who like your Open Graph Page the same way you write a Facebook post from your own wall. The stories appear in the News Feeds of people who have clicked the Like button on the Open Graph Page.
You can also publish using our API. If you associate your Open Graph Page with a Facebook app using the fb:app_id meta tag, you can publish updates to the users who have liked your pages via the Graph API.
First you need to get an access token for your app.
Check out the blog post, it covers everything you need.