How to post to timeline after the feature is removed - facebook

At https://developers.facebook.com/docs/reference/api/publishing/#other I see that the feature to post to timeline is removed. Will it be possible in a way to post to the timeline after that feature is removed?

Posting on own's timeline /me/feed is not been removed. Posting on other user's/friend's walls is removed. For latter, you may use Open Graph concepts.
You can follow the similar question here: How to post on a friend's Timeline after the February 2013 migration takes effect?

Related

Facebook Graph publish posts with link and custom picture not working on v2.9

I remember when I was using Graph v2.8, I could set custom picture and caption for link. Now it is impossible for v2.9. Is there some kind of workaround without specifying og: tags.
How it was on v2.8:
How it is now on v2.9:
Unfortunately there is currently NO publicly known workaround.
According to facebook developers blog:
As part of our continuing efforts to stop the spread of misinformation and false news on our platform, earlier this year at F8 we announced an important change to our Graph API: Graph API version 2.9 includes a 90 day deprecation of the ability to edit previews attached to link posts.
https://developers.facebook.com/blog/post/2017/06/27/API-Change-Log-Modifying-Link-Previews/
The feature works for API version < 2.9 until 17th of July 2017, though.

Posts made to page wall displayed in user newsfeed without "via <application name>"

Posts made to page wall using graph api displayed in user newsfeed without "via ".
You can see axample here http://www.insidefacebook.com/2012/11/12/new-link-shows-users-more-page-posts-and-friend-activity-in-news-feed/.
Is it possible to see what application shared this post to page?
Actually you can use Graph API to find out what application created the post. Although Michael is correct in pointing that via- tag is removed by Facebook on post's display.
The "via"-attribution for posts done by apps on pages was recently dropped by Facebook.
I'm pretty sure there's no way to tell from the outside, if a post was made through an app, and which app in particular.
Compare this screenshot of what the Graph API exposes about a post (its a post we've published on http://fb.com/diesocialisten via http://www.swat.io)
Post: https://www.facebook.com/129842310398883/posts/350825491682109
There's no hint of the used app here:
Anvesh is right: you actually can get the "application"-field, but you have to query the feed itself (/diesocialisten/feed), not the particular post. Cool, didn't know that!

Facebook Graph / FQL - is there a way to bring back or move up my old post?

I have a pretty strange requirement in front of me. I am able to pull out data from facebook Graph and do things around it without a doubt. However, out of the feeds/posts I have (I pulled from me/feed/), I can see some of the feeds are an year old or more. Is there a way by which I can bring up or move up any old post?
Many Thanks,
Reno Jones
No, you cannot edit the date of a post, or otherwise 'bump' it to the top of your Timeline via the API

How to post on a friend's Timeline after the February 2013 migration takes effect?

Since Facebook is removing the ability to post to friends' wall via Graph API from February 6, 2013 onward, I want to know if there are some alternates to post to the friend's Wall.
Till now, I was using Feed API for this- using to parameter but it throws the exception:
(#200) Feed story publishing to other users is disabled for this application
The possible solution that I found was: OG: Mention Tagging. But is there a way to accomplish this other than by using OpenGraph? Please help.
But is there a way to accomplish this other than by using open graph?
Accomplish what exactly?
Tagging users/friends in any kind of posts? Only possible for Open Graph stories, or photos. (But be aware, apps are not supposed to tag users in photos if the user is not actually in it, or if it’s not a real photo, but just a composite image.)
Or posting to friend’s wall? This will only be possible using the Feed dialog from Feb. 2013 on.
The possibilty to post to friend’s walls via API will be removed in February 2013 – https://developers.facebook.com/roadmap/#february-2013:
If it fails for your app already, maybe you have the corresponding migration enabled in your settings? Anyway, not much point in developing such a thing now, since it won’t work any more in a week.
“We will remove the ability to post to a user's friends' walls via the Graph API. Specifically, posts against [user_id]/feed where [user_id] is different from the session user, or stream.publish calls where the target_id user is different from the session user, will fail.”
If you want to allow people to post to their friends' timelines, invoke the feed dialog. Stories that include friends via user mentions tagging or action tagging will show up on the friend’s timeline (assuming the friend approves the tag). For more info, see this blog post.
Edit:
#Sahil: See also this answer if it works now. I am not sure it will work now or not. But you should try once. I had made some workflow previously by selecting friend and inviting him and also posting on his wall also. I havn't tested this now, please confirm me.
If you use the to parameter with the Feed Dialog, you'll also need to specify a valid access token.
We actually had this same problem, which we solved by displaying the Feed Dialog as an iframe and dynamically adjusting the to param. You can find an in-depth answer + code sample here: https://stackoverflow.com/a/14532867/1406819
Check the FB.ui documentation for the feed method here: https://developers.facebook.com/docs/reference/dialogs/feed/
Setting the "to" parameter to a friend's ID will enable posting to a timeline.
to - The ID or username of the profile that this story will be published to. If this is unspecified, it defaults to the the value of from.
See the Properties detail lower on that page for more info.
Note that using this will trigger a confirmation dialog.
If you're using the JS SDK, here's something to get you started:
var MY_ID = "1000000000000";
function post(link, callback){
var post = {};
post.method = 'feed';
if(!link.target)
{
link.target = MY_ID;
}
if(!link.from)
{
link.from = MY_ID;
}
post.to = link.target;
post.from = link.from;
post.link = link.link;
post.name = link.name;
post.picture = link.picture;
post.caption = link.caption;
post.description = link.description;
FB.ui(post, function(response){
if(typeof callback=='function'){callback(response);}
});
}

Unable to post links to an FB Event page using the Graph API

We are trying to publish to the feed resource of an event using the Graph API. What happens is it seems to ignore any link that we post. It also does not seem the Graph API supports any option for posting a photo to the wall of an event.
We make the call to the event feed using the following parameters:
link='http://rfid-social-media.odinrfid.com/photo?photoId=000000000000000000102107'
name='John at Facebook Party'
message='Test Message 2'
caption='What a great time'
And we publish against the url:
https://graph.facebook.com/EVENT_ID/feed
The request response does go through successfully, but the link does not show up in the UI.
We can post a link to a regular page using the Graph API without issue. It does show in the UI with the link, thumbnail, caption, etc, all as it should.
Thanks..
This is a Bug and its reported and marked as confidential
With the below text and its also contain security hole
bug report link
Below is my bug report text.
Other details on this report are shown to Facebook employees only
I recently attempted to post on an event's wall using the Graph API, but only the message is posted; Everything else is not showing. e.g.
Link
Picture
etc
There is one more big thing that the post doesn't show; That this post is post "via a Facebook app"
Note: posting on a page or user wall worked and also normal messages posted on an event 's wall.
The most important thing is when the post is shown on the event's wall "it does not show that its posted by a Facebook Application".
This is very dangerous; For example I can make an application and post nonsense on a user's wall. People will think that this is posted by the user.
Thank you so much for creating this question
For posting a photo to an event it seems to be a FB bug, subscribe and up the repo count so it gets attention
https://developers.facebook.com/bugs/225316074217855?browse=search_4f2f7576c5bc32d87041759