Can't seem to figure out the facebook login plugin...

Get help using Construct 2

Post » Sun Aug 16, 2015 9:00 am

Read the facebook tutorials by @Ashley which was great in my opinion. But I can't seem to figure out how can I let users login to Facebook with my game that is already up on the App Store.

So I create a loginSprite for facebook & This is the condition and action I made to login to Facebook

1) On Touched loginSprite > Facebook Log In

I also copied pasted my App ID & Secret, but whenever I test it on my browser and on my iPhone browser it gives me this error

"Given URL is not allowed by the Application configuration: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains."

Anybody can help me out here?
https://itunes.apple.com/us/app/id1004254105

We bet anyone a hundred dollars if they can reach the bone on the other side of the screen! (Only on the Impossible Mode)
B
10
S
2
Posts: 122
Reputation: 1,004

Post » Sun Aug 16, 2015 9:34 pm

Is it a mobile app from like the apple store or google play...... If so, the standard Facebook login's will not work. A person by the name of cranberrygames has a version of Facebook login for mobile exports. If your app really is just a website then the above mentioned error means that the website you are accessing isn't listed in the app domain or the website url settings on the developer.facebook.com settings for your app. You would just need to add the website to your settings.
www.h1k3.tech

We are here for you!
B
90
S
24
G
16
Posts: 716
Reputation: 17,032

Post » Mon Aug 17, 2015 6:04 pm

@lanceal So you are saying the Facebook object that comes with Contruct 2 does not work on mobile devices?
B
42
S
16
G
3
Posts: 169
Reputation: 4,383

Post » Mon Aug 17, 2015 6:53 pm

@lanceal Yes the game is already up on the app store and I am planning to use the FB Plugin so that people will be able to post their scores to earn in-game currencies.
https://itunes.apple.com/us/app/id1004254105

We bet anyone a hundred dollars if they can reach the bone on the other side of the screen! (Only on the Impossible Mode)
B
10
S
2
Posts: 122
Reputation: 1,004

Post » Mon Aug 17, 2015 8:18 pm

No @ondraayyy and @CDogs1964, the last I knew it did not work on mobile exports. The reason being is this
Most apps utilize a website, so when you setup your account, Facebook can make sure it only talks to requests for information from the websites you tell it are safe. With a mobile strictly app, there is no website outside of possibly http://localhost. Facebook does allow you to put localhost as a domain while testing your app, but when your ap goes live it will refuse requests from anyone but the developer from localhost. So you need to use one of the mobile settings in your developer.facebook.com app whcih requires some key. I've never made a mobile app so I'm not sure if the key is made by the app store or by you during the export process. I just know it requires some weird id in place of the website.

Last I knew, the standard Facebook plugin does not work on the whole key system, only on the website system. You would need to look up a third party solution. A user by the name of cranberrygame has a phonegap version facebook login and someone else has a parse.com version which I believe is mobile friendly, but check first. Look through the third party plugins section on the forums for more information on these.
www.h1k3.tech

We are here for you!
B
90
S
24
G
16
Posts: 716
Reputation: 17,032

Post » Mon Aug 17, 2015 10:11 pm

Thank you.
B
42
S
16
G
3
Posts: 169
Reputation: 4,383


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 24 guests