Share Facebook on iOS & Android [solved]

Get help using Construct 2

Post » Tue May 13, 2014 2:41 pm

@Colludium Thank you for advice,I done follow your device.But this problem as it was.When i test my game in android device open in new window facebook page show message : "An error occurred.Please try later".

This is code : "https://www.facebook.com/dialog/feed?app_id=289001427926470&display=popup&caption=
%20Check%20out%20my%20MyGame%20score%20of%20&link=https://developers.facebook.com/docs/dialogs/
&redirect_uri=https://facebook.com&name=FlyingBunny&picture=https://31.media.tumblr.com/26fde50632cae49097f8b7171
60ae57f/tumblr_n5g8lejUS21tbc39ho1_500.jpg&description=%20Can%20you%20beat%20my%20score%3F"


Apologize for my English language,Please help me thank you very much.
B
9
Posts: 10
Reputation: 377

Post » Thu Jun 12, 2014 5:00 pm

@Colludium many thanks. i had been searching for this kind of topic for a while but i didn't try the scirra forums. I will definitely try this out for my game.
B
7
S
2
G
1
Posts: 5
Reputation: 677

Post » Thu Jun 12, 2014 10:26 pm

@aumthong99 & @Xamie, it seems like a bit of a black art at first until you get it to work... The trick is to encode each of the sections that include spaces so that the final url has none but the content of your titles and posts is not changed. The facebook is the most difficult to get to work. As far as I can tell you have to link to your facebook app id number and that has to be setup correctly on facebook or it won't work as well. Good luck!!
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,290
Reputation: 47,564

Post » Fri Nov 06, 2015 1:34 pm

can someone share a easy capx on how to show score on facebook (android)?
B
41
S
16
G
7
Posts: 1,750
Reputation: 9,963

Post » Mon Jul 04, 2016 1:10 pm

Simple share link:

Code: Select all
https://www.facebook.com/sharer/sharer.php?u=youraddress.com/file.html
B
4
Posts: 1
Reputation: 202

Post » Thu Apr 13, 2017 8:33 pm

webadresim wrote:Simple share link:

Code: Select all
https://www.facebook.com/sharer/sharer.php?u=youraddress.com/file.html


thanks for sharing this sir..!!!
btw, can i add picture or icon in the share preview?
B
3
Posts: 5
Reputation: 185

Previous

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests