Facebook stuff with no app or permissions

Get help using Construct 2

Post » Wed Jan 04, 2012 11:58 am

It's my general understanding that I shouldn't need an app or permissions if I want to prompt the user to share a link on facebook. Or am I wrong?

I looked at the facebook tutorial, but it's with an app. I don't want that.

I simply want a button that, when clicked, should prompt the user to share a link on facebook.

So I added a facebook object, but can't get it to work at all. Please advise what am I doing wrong.

Here is capx: here

Issues / questions:

1. The facebook IsReady seems like it's never firing. Why?
2. Clicking the buttons does nothing. Why?
3. Do I need to call Facebook.login before calling share? On other sites I can share without "logging in".

Thanks in advance.
B
14
S
5
G
7
Posts: 235
Reputation: 5,175

Post » Wed Jan 04, 2012 3:28 pm

Facebook object will not work in preview..

If you set it up to put the game onto your site, then you need to still set the app up on facebook. But set it up with the website selection.

     - It will ask you for the adress its hosted at.
          - You will type example.com/Games/MyGame
     - Then all the facebook features will work..
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Wed Jan 04, 2012 7:58 pm

This is strange, sharing the link on facebook with user prompt should (generally) not require an app or log in. Please correct me if I'm wrong :)

Any particular reason why app and login are required for link sharing with user prompt on facebook?

Thanks.
B
14
S
5
G
7
Posts: 235
Reputation: 5,175

Post » Wed Jan 04, 2012 8:44 pm

Im not entirely sure, only @Ashley can answer that one.

Im sure its to do with facebook being facebook, there api's are notorious for being hard to work with.

They probably want everyone to give permission first.

Probably legal aswell, You could essentially insult someone through publishing to there wall, if they give you permission then its there fault..
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Thu Apr 05, 2012 12:01 am

Coming back to this. I can post a "share link" or "like" button on my site without creating an app or getting anyone's permission.

Why do I need an app with facebook for the facebook plugin to work? Am I missing something?

Thanks!
Geo
B
14
S
5
G
7
Posts: 235
Reputation: 5,175

Post » Thu Apr 05, 2012 1:17 am

Facebook apps will not work until you set up the app on Facebook and publish to the open web. Before you've registered the app with Facebook they'll assume it doesn't exist and ignore any calls your app makes to Facebook. Even if you register the app usually you have to enter the domain it's hosted on for security reasons, and 'localhost' is not a valid domain. So basically you have to publish to test FB apps I'm afraid, there's not much that can be done to avoid that.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600


Return to How do I....?

Who is online

Users browsing this forum: Nifl and 20 guests