I am trying to implement Facebook Game Requests to my Android App.
GameRequestContent.Builder()
needs to have .setObjectId()
called, to use ActionType.SEND
or ActionType.ASKFOR
. Where do I get this object?
When I try to create object using Object Manager or Object API I get this error in the Facebook dialog:
Object type 'Game' for ID 'xxxxxxxxxx' is not owned by this app.
Even though I always provide App Access Token in the creation process.
I even tried to set tag fb:app_id of the object to id of my app, but that information wasn't saved without any error messages.
I can't seem to find anyone adressing this topic anywhere in this manner, I mainly don't even understand why Object Id is required in a first place, so perhaps I confused more different topics from Facebook api (its terminology can get very confusing).
What am I doing wrong?
Requests will now be accessed either through your game bookmarks on the left-hand side of your home screen or a link that will appear titled "You Have Game Requests" (pictured above)when you have requests from any of the games you play, according to a post on the Facebook blog.
On your Facebook main page, go to the far right at your top menu bar. Click on the dropdown arrow and click on Settings. 2. On the left sidebar, choose Blocking and you will be taken to the Manage blocking section.
All you need to do to challenge a friend to a game is start a conversation by clicking on the name of your friend or pressing the plus '+' icon. In the conversation window, tap the game controller icon below where you enter your message text, then choose the game you want to play.
I am having the same issue.
I just changed my app to live instead of keeping it in debug mode and now it is suddenly working.
I was having the same exact issues you outlined and this worked for me.
I also realized that I changed the object type from game
to product
. Even with it set to published/live a game object does not work but a product object works.
Also, upon more research https://developers.facebook.com/docs/reference/opengraph shows object types. There is a game.achievement
but not a game
.
There is a product
object with a description
This object type represents a product. This includes both virtual and physical products, but it typically represents items that are available in an online store.
Even though the API and graph explorer gives us an ID for the game object it seems like it isn't the proper object to use.
{
"created_time": "2016-12-13T19:15:59+0000",
"title": "Shots",
"type": "product",
"data": {
"is_product_shareable": true
},
"id": "xxxxxxxxxxxxx"
}
is the response I get when I do a get on /v2.8/object ID
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With