wrong title when posting action with opengraph in recent activity - facebook-graph-api

i'm trying to post an action with open graph everything is fine & the story in newsfeed is ok but something in the activity in user's timeline is wrong
newsfeed:
timeline :

'a view' is the type of object you have created. I suggest you rename this to what you want it to say on timeline.
Is this what you mean?

Related

Facebook Opengraph Console error

Hello people i am trying new action to post picture on facebook and during posting i am facing a error which i cant able to make it work properly
The action you're trying to publish is invalid because it does not specify any reference objects. At least one of the following properties must be specified:
for posting your action, with Javascript SDK for posting image you should try something like:
FB.api('/me/bhlolzspot:laugh_out_loud', 'post',
{ funniest_picture : 'OBJECT_URL',image[0][url]=http://www.yourdomain.com/images/image.jpg,image[0][user_generated]=true });
I am assuming laugh_out_loud is your action name and funniest_picture is your object name.
at OBJECT_URL, all your meta tags should be in place and i can see there is a missing og:image tag, there you should put the image you want to post with action on facebook.
hope it helps.

Shown on time line vs Allowed on timeline

I am following the instructions posted on here: https://developers.facebook.com/docs/opengraph/tutorial/#define
It adds the item to my timeline, but I can only view it by going to Activity Log, once I hover over the button on the far right, its default selection is Allowed on Timeline, once I click Shown on Timeline, it appears.
Is there any way to default an application posting on someone's timeline to appear(shown on timeline) by default?
My site where I am using facebook application of Read an Article is this.
I’ve just asked the same question today on Facebook’s developer group. I had a response from a Facebook developer and he said you can’t force a timelime post to “Show on Timeline”. Post will default to “Allowed on timeline”. Apparently, to increase the chances of your story appearing on the timeline you need to post something that the user wants to see on their timeline!
See this screen shot image for the actual response.
Update: I have found that setting the "fb:explicitly_shared" property to true is forcing it to appear on the timeline although the post is still set to "Allowed on timeline" not "Shown on timeline". I'm using the Facebook c# NuGet package and the following code worked fro me...
FacebookClient fb = new FacebookClient();
var postInfo = new Dictionary();
postInfo.Add("vip_bar",#"http://samples.ogp.me/252865028170797");
postInfo.Add("title", "The VIP Bar");
postInfo.Add("og:title", "The VIP Bar");
postInfo.Add("og:description", "Check me out getting leggless in the bar!");
postInfo.Add("fb:explicitly_shared", "true");
fb.PostTaskAsync(, (object)postInfo);

"Like" open graph action

I have an iPhone app (http://getnowapp.com) that lets you "Like an experience".
I would like to integrate it on the Facebook timeline with Open Graph.
I set up the "Like" action on Opengraph but got rejected with the following reason:
"Your Action failed the criteria: You are trying to submit a custom action which is not permitted. Please delete this action and submit a built-in version of this action instead."
So it seems Like is not an acceptable action as it already exists in Facebook.
However, you can "Like a Pin on Pinterest" without any issues.
Am i missing something here?
Thanks!
Ben
As you figured out, "like" action is already defined by facebook and that's why you can't define a new one.
I guess what pinterest does is to use the like connection that is already supported by Open Graph API to "Like." https://developers.facebook.com/docs/opengraph/actions/#like_actionI'm not quite sure because I haven't used this action, though.
POST https://graph.facebook.com/ACTION_ID/likes?access_token=YOUR_ACCESS_TOKEN
And just in case you are interested, you can see some insights of pinterest's implementation. here

Actions do not appear on timeline

I'm developing an app which publishes actions to the timeline.
On the app settings, I've created the action "post" and use the built in object type "article".
Although my graph actions have not been approved by facebook, that should not be a problem, because I am logged in as the developer of the app.
My article URLs pass facebook's linter with warnings, but no errors.
When my app notifies facebook of the the post action, it appears to succeed. Facebook returns an ID representing the action.
When I use facebook's graph explorer to view that ID, the data appears to be correct, showing the correct action type and object data. (If there's a URL to browse the action on facebook, instead of the graph explorer, I do not know what it is).
Still, with all the above apparently working without errors, I never see the action on my timeline. Whether I browse my own timeline, or when logged in as a friend and another developer of the app, I never see any indication on facebook.com that the action was performed.
What am I missing to make my custom action appear on my timeline page?
I had a similar problem. I was using OG and I could post everything successfully, but the posts didn't appear in timeline, but only in the activity log in Facebook.
I just went to the settings of the action and set "Explicitly Shared: This action can specify the user explicitly shared an action." to ON.
Then in my piece of code I put "true" to the key "fb:explicitly_shared" while creating the OG object.
If no error is being returned it sounds as if there is an issue in your public page that is preventing Facebook from knowing what to post.
Have you double checked your OG: meta tags through Facebook's validation tool [ https://developers.facebook.com/tools/debug ]. While you need all of the values to be filled in, the type bit is the most overlooked and must be setup properly to link to your particular application and corresponding action.
If your OG: data is correct and validating you should also check the detail settings for your action and aggregations. If the phrase / tense bits are not filled in Facebook may be uncertain how to make your post appear back to on the timeline.
Discoverd the problem....
My article page include an article:author tag. The URL in that tag was not visible to anonymous users. So, I'm guessing, facebook visited that author URL and received a HTTP 403.
When I removed the article:author tag, the items started appearing on my timeline.
So be careful with all tags and put all urls through facebook's debug tool.
Hmmm Interesting
Was having the same issue...
Using the XFBML, fb:like with all required og meta tags validating on the linter.
Last month when I liked a 'product' on my website, the post was published on my fb timeline wall no worries. Nice, perfect!
Today after clicking Like, I noticed it wasn't publishing to my timeline wall at all... but was logged in the Activity Feed.
It did however post to my wall if I commented on the Like Button flyout comment section.
Then I found this
"Pages of type article do not have publishing rights, and will not show up on user's profiles because they are not real world objects."
https://developers.facebook.com/docs/opengraphprotocol/#types
I've been getting the same issue with a feed dialog post. The posts can be navigated to directly, but doesn't show on timeline. More details here:
Actions not appearing on timeline
I had a similar problem, but everything was actually working correctly. If you get a returned ID and your article appears in your RECENT ACTIVITY, then all should be good.
The perceived issue, your post not appearing in your timeline, is actually the correct behavior. Your post doesn't appear in your timeline because it should appear in your friends' timeline as an activity that you completed. Once they comment or like it, then it should reappear on your timeline.
For me the issue was the posts doesn't show on timeline for all users except me also it was public !, i fixed it by make turn on application as online to be available to all users

Re-sharing posts from an app

When I am posting to my wall directly, then my friends have an option to "re-share" the post by clicking on "Share" link (last one in the list of actions: Like * Comment * Share). However, when I post from an application, there is no "Share" link and only Like and Comment actions are available.
Is there a way to change application or application preferences to enable direct re-sharing for posts from applications?
You can post a "Link" to User's wall with a "link"-field to the Original post like "http://www.facebook.com/{{$fb_id}}" and you can add a "message" to that as well.
UPD: for reSharing a "Picture" you either "generate" a link like "http://www.facebook.com/photo.php?fbid={{$fb_id}}" or request Picture via GraphAPI and use it's "link" field. this is valid for other FB-Graph-Types.
Here is how it is done In Graph API do this..
post me/feed
message : YOUR_MESSAGE
link : link to share
actions : {name: "share", link: "linktoshare"}
Refer these
https://developers.facebook.com/docs/reference/api/user/#posts
http://developers.facebook.com/docs/guides/mobile/#android