Is it possible to avoid self-contained hosting facilities for Facebook stories?

To create “stories” on Facebook, for example, “Joe beat Jane in (some kind of game)”, it seems you need to create these pseudo-HTML files (“Self-Hosted Objects”) that you must host your own server on Facebook will receive data from.

I'm just wondering: is it absolutely necessary to create these files or is there a way to avoid them?

It seems to me that all the metadata that will be displayed, such as username, photo, etc., is already on Facebook, so why should this be explicitly indicated in an external file?

+4
source share
1 answer

Instead of using self-service objects, you can explore the Object API, https://developers.facebook.com/docs/opengraph/using-object-api/

In particular, go to the section on objects in the application. Therefore, instead of creating files with metadata, you can pre-create instances of objects. There are two ways to create objects:

1 / Using the Object Browser: https://developers.facebook.com/tools/object-browser

2 / Through an API call, in essence, you send POST to the endpoint https://graph.facebook.com/app/objects/ where the type of the Open Graph object is presented, for example: myappnamespace: food for eating.

In the specific example that you are asking where the object could be someone, for example: Facebook, you can even use the Facebook vanity URL for the profile object. For an example, see the Smash Friend game example https://developers.facebook.com/docs/tutorials/androidsdk/3.0/games/open-graph/#step3

+3
source

Source: https://habr.com/ru/post/1485295/


All Articles