How do I post a simple facebook feed?

Get help using Construct 2

Post » Sat Jun 13, 2015 11:09 am

How do I let the player post a (simple) feed on facebook, from within my game?
(platform: html5 game, run from a browser, but I might also later try this from the Play Store)

So: player clicks on facebook-icon. After clicking on the facebook icon, several screens and options (I do not know in detail how this looks like, or what options there are) let the player decide to post a message on his/her facebook wall with a text, like "my score with this game was xxx".

This is what I have done so far, without any good result:
I have registered as a facebook app (it's in development mode) and received from FB an APP ID.
I have read the Scirra manual, outdated tutorials and I have experimented.
2 hours later I am writing this forum post.

So far the only thing I could think of trying was:
in C2:
Code: Select all
click on icon --> go to url: "https://www.facebook.com/dialog/feed?app_id=MY FB APP ID".

Result: browser goes to facebook. Facebook says:
"you gave an invalid parameter to this feed.
API error code: 100.
API Error Description: Invalid parameter
Error Message: Requires valid redirect URI."
B
28
S
6
G
7
Posts: 681
Reputation: 5,682

Post » Sun Jun 14, 2015 9:30 pm

1 friendly, gentle and not obtrusive bump ^^...
B
28
S
6
G
7
Posts: 681
Reputation: 5,682

Post » Mon Jun 15, 2015 12:27 am

You need create an app in Facebook Developers, and put the secret ID in the Facebook plugin properties in Construct 2. Do you know made this? Sorry for my bad english.
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
26
S
8
G
4
Posts: 336
Reputation: 4,050

Post » Mon Jun 15, 2015 7:44 am

DaniellMesquita wrote:You need create an app in Facebook Developers, and put the secret ID in the Facebook plugin properties in Construct 2. Do you know made this? Sorry for my bad english.


Thanks, I will try that.
I already have a FB ID though. And I put it in the FB plugin.
I thought the secret ID was not necessary, unless I want to do anything with scores? (I only want to post a message on FB)
B
28
S
6
G
7
Posts: 681
Reputation: 5,682

Post » Tue Jun 16, 2015 2:16 am

"Messages"? Do you want mean "Posts"? To prompt posts in Facebook, as best way you'll need the App ID and App Secret. The best way is using the Facebook API to prompt post with a link you've choosen. :)
Liked something I say?
Tip. My Bitcoin address: 1PLaeKmXQ8vEdGGJqXMq3KyB8hxeddxeSv
B
26
S
8
G
4
Posts: 336
Reputation: 4,050


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests