Translating Stories on Facebook - facebook

I cannot figure why facebook is not translating stories which action types have custom properties. For instance, I have an action type called "think_about" with a custom property called "typo". When configuring the respective story I say that I want the following text:
- "John thought Something was {typo}"
I have created the corresponding translation in Spanish. However, the translation only works if I do not send the typo when calling the opengraph api. If I send a value to the option typo, the facebook story is never translated.

Related

Add new object with facebook developer api v2.8

Im trying to add new object through Object Browser.
I have 2 apps with facebook integration, they both api versions are 2.8,
in one of them everything works perfect, In the second one I cant add new objects.
Before facebook disabled Custom Open Graph and updated the api to 2.8 I had no problems....
First App: have the "New Object" button
The App with the option to add objects
Second App: doesnt have the "New Object" button
The App that has no "add" button
I've double checked all setting in both apps to see that I didn't forgot something and its all seems OK.
If there is any other option to add new object (not throuth the Object Browser) it will be great to. I've tried to add through Graph API Explorer with no success.
Thanks in advance
Moti Monsonego
As Facebook announced
Custom Open Graph stories are deprecated in Graph API 2.8. Graph API 2.7 and lower will support custom Open Graph stories according to the following schedule:
Support for creating new objects will end in January 2017. Support for
publishing existing objects will end October 2017.
Now we can only use predefined Object Types and Action Types
Objects instance are defined by Open Graph HTML markup on web pages. If you don't have a web server to host your content, you can use the Object API to upload and publish objects.
To get New Object Button in Object Browser
You have to first register object type
Go to Graph API Explorer
Get App Access Token
Change method To POST from drop down
Press Add a Field
write in Name Field object
In Value Field Add your object's JSON e.g
{
"app_id":APP_ID,
"type":"product",
"url":"http:\/\/samples.ogp.me\/306382486524859",
"title":"SAMPLE TITLE",
"image":"URL OF YOU IMAGE",
"description":"SAMPLE DESCRIPTION"
}
- app_id – This is the ID of your game.
- type – type of Object you arecreating.
- url – This should be the url of your game.
- title – The title to display.
- image – The url to the image that you want to display.
- description – A short description of the object.
Graph API Explorer Screenshot for help
Press Submit
If everything is correct, you should see an ID returned as a response.
Now Go To Object Browser
There will be a New Object Button

Opengraph displaying as One to One - Without Object Title

In my facebook app i have given the necessary meta tags for the open graph url. When i publish a story using open graph, the story is published on the wall as One to One - Without Object Title mode. When i view it in open graph settings, the One to One mode is displayed correctly. I have added a screenshot for better understanding
Answered the same question here Facebook Open Graph Not Showing Object Title
I have a workaround:
To your "school" object add a property "name" of type string.
Edit your story "visited school": In the One to One without object
title change the story to "visited a {school.name} via Eduraft"
from "visited a {school.title} via Eduraft"
Save the changes.
When creating the school object, then along with "title" provide
same string to the property name. Publish the story.
i had the same problem.
i got perfect solution try this:
Change the story of the type "One to One - Without Object Title" as "Object" from "Object.noun".
For e.g: Story sentense would be as follow:
"Tejas ran race with sample."
Here race is my object.
Keep the sentence of story of the type "One to One" as Object.title as it is.
For e.g: "Tejas ran race.title with sample."
Here race is my object.
Thanks,
Tejas

Has Facebook replaced the fb_ref parameter?

This morning I found out that Facebook is not returning the fb_ref parameter when you add it to links in actions or likes. Instead they seem to have replaced it with a series of new parameters: action_ref_map, action_object_map, ...
Could someone confirm me this change? This is breaking our software.
EDIT
This is an example that I've found:
http://uk.omg.yahoo.com/news/john-travoltas-year-gay-affair-pilot-revealed-122446486.html?fb_action_ids=10151047496853334&fb_source=other_multiline&action_object_map={%2210151047496853334%22%3A10151788645595106}&action_type_map={%2210151047496853334%22%3A%22news.reads%22}&action_ref_map={%2210151047496853334%22%3A%22type%3Aread%2Cuser%3A1k-WK59_Yk-EnPq2w1zMLBjX7nA%22}&code=AQCH-sq6XRSQCXj4QNkKlnusWLgIvBaZduNhGO0RNdiXgfCSGUOd1qinfHVw1iFQfs-0KVxFdPpWXD9nWrjEC1naU87H5W4GnxnTPL5j2raksea2pFxuy0rtgSpAa6ExZYCc7PkzIyjNnGTdK6N7g0Spb7qiqSboTgWZOojQJYbEF2XHenlROjhP8--NkvzrxU8#_=_
EDIT 2
It seems that Facebook has activated a new system for returning "fb_ref" in sandboxed FB apps.
https://developers.facebook.com/docs/fb_source/ is (and should be) the primary source of referral information and open graph actions have always had their own referral parameters showing which actions were present in the story/aggregation which triggered the click
fb_ref is provided when you had a 'ref' parameter on the source publish but as far as i know there hasn't been a change there
(e.g. like button with ref = foo results in a click back to your app with fb_ref=foo, fb_source=ticker or something like that)

How to translate open graph objects

I am quite new to facebook API. I have used the open graph to generate actions and objects.This actions are now validated by facebook.
But, I have a translation trouble : the action and object are necessarily in english. And the facebook doc say that the action and objects are automatically translated when the meta tags are made 'locale', which was done. But my site is french and the actions an objects are still appearing in english. Does anyone can hep ?
(The ref's doc:https://developers.facebook.com/docs/opengraph/internationalization/, http://developers.facebook.com/blog/post/605/ )
Best ,
Newben
If you’re already refering to the documentation – why don’t you read it as well?
The blog post says how translating your app works, and https://developers.facebook.com/docs/internationalization/ describes it in more detail.

Is it possible to "og:read" an "og:article" using Facebook's OpenGraph?

It appears that both "read" and "article" are built in actions / objects on Facebook's open graph. Unfortunately, it's not clear how to use the two together.
I tried to create a "my-namespace:read" action on the object "og:article", but I can't find the object "og:article." (even though https://developers.facebook.com/docs/opengraph/ lists article as a type).
This is a problem for me because I'm trying to register a user action on existing websites that already uses the open graph protocol. This page, for example, has the type "og:article." If I try to define my own "read" and my own "article", it won't work as FB will tell me "< said webpage > is of type 'og:article' and not of type 'my-namespace:article.'
Under Connected Objects, try choosing the "article" that appears in the typeahead when you don't have your own article defined. That is og:article.
You can also change the og type and it won't impact your existing likes.