Facebook Share Error

Discussion and feedback on Construct 2

Post » Thu May 02, 2013 6:36 am

Hi Constructors,

I tried adding a Share button on my sample game and I got this error.

https://dl.dropboxusercontent.com/u/104449819/Error.png

The html game is hosted outside Facebook. How to fix this error?

How to make game and host it within Facebook?

Thanks,
Morexmorex2013-05-02 06:37:28
B
23
S
6
G
3
Posts: 39
Reputation: 4,739

Post » Thu May 02, 2013 2:02 pm

See the answer by disco on this stackoverflow page for how to configure your app settings to fix that error: Canvas URL / Secure Canvas URL error message

You need to host the game outside of Facebook (on your own website), Facebook won't host it for you. It just puts it in an iframe for you. russpuppy2013-05-02 14:03:22
B
57
S
10
G
6
Posts: 455
Reputation: 8,530

Post » Fri May 03, 2013 2:55 am

Hi russpuppy,

Thank you for the information.

I tried to that approach but I got this error below.


Method Not Allowed
The requested method GET is not allowed for the URL /c2/facebook/index.html.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.



Any advice.
Morex
B
23
S
6
G
3
Posts: 39
Reputation: 4,739

Post » Fri May 03, 2013 4:58 am

Make sure at the least, you set the website domain(www.mydomain.com) in app settings as well as the physical link to the uploaded program(www.mydomain.com/myapp) Note: If I recall correctly you need to add a "?" to the secure link(www.mydomain.com/myapp/?

Once the above has been done you will be able to access the program yourself as the author(or anyone you setup in the app settings) until you turn off sandbox mode(again in app settings) Sandbox mode prevents anyone not a developer of your app from viewing your app(but this isn't your current issue. Just mentioned for the sake of thoroughness)
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Fri May 03, 2013 5:05 am

Also for anything more then a like button you will need to use the standard Facebook plugin or one of the third party plugins under the Plugins section of the forum.
B
68
S
21
G
15
Posts: 701
Reputation: 15,604

Post » Fri May 03, 2013 6:17 am

Thanks lanceal. I will give it a try.

B
23
S
6
G
3
Posts: 39
Reputation: 4,739

Post » Tue Jul 23, 2013 3:26 pm

Hi Guys!
Has anyone had any problems connecting to Facebook as of this date?
I hosted the C2 Fb template and went through the Fb app procedure but I can't login.

I get this error:



I don't even get this error response when I use the 'Prompt to share' action.

I was successful 2 weeks ago but now the game I made does not want to connect to Fb.

:(
B
15
S
6
G
3
Posts: 87
Reputation: 4,304


Return to Construct 2 General

Who is online

Users browsing this forum: Arima and 6 guests