Share Facebook on iOS & Android [solved]

Get help using Construct 2

Post » Sun May 11, 2014 1:19 pm

It's a bit out of date, but the principles still apply. Read this facebook app tutorial - that should help.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,208
Reputation: 43,838

Post » Sun May 11, 2014 3:05 pm

hi,
now on twitter work fine ...
but with facebook
i just copy and past your posted url and change app id , link "with decoded and encoded" but still same on ios
if i check it on construct (preview) it work ... but not in simulation on xcode and device (iphone4s"
it give me "error try later"
and what about this "Browser : go to FB_URL in a new window ("New Window")"
where you change it ?
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Sun May 11, 2014 5:02 pm

I use text replacement in pre-events to insert the specific info for the post. FB_URL is just my variable name for this.
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,208
Reputation: 43,838

Post » Mon May 12, 2014 9:20 am

Thank you for advice.It's work on android app but facebook brower show message error. How to fix this problem.
B
9
Posts: 10
Reputation: 377

Post » Mon May 12, 2014 8:54 pm

yes on ios it give eroor for facebook
but if we check it on construct 2 previem its work
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Mon May 12, 2014 10:56 pm

Sorry chaps - the only suggestion I can give you is to ask you to post your link code here and I or someone else can take a look at it. X out the bits you want to keep secret if you want....
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,208
Reputation: 43,838

Post » Tue May 13, 2014 3:04 am

i encode all the link except the first facebook link and now its work
thanks a lot
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Tue May 13, 2014 3:14 am

@matrixreal - excellent!
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,208
Reputation: 43,838

Post » Tue May 13, 2014 6:23 am

I use code : "https://www.facebook.com/dialog/feed?app_id=289001427926470&display=popup&caption= Check out my MyGame score of &link=https://developers.facebook.com/docs/dialogs/&redirect_uri=https://facebook.com&name=FlyingBunny&picture=https://31.media.tumblr.com/26fde50632cae49097f8b717160ae57f/tumblr_n5g8lejUS21tbc39ho1_500.jpg&description= Can you beat my score?"

in url(str) : It's work in android device but when open in new window facebook page show message : "An error occurred.Please try later"

This image in my c2.
https://24.media.tumblr.com/4dd12702d3a2d41c30ed594c9b84f06b/tumblr_n5i1i0sT7t1tbc39ho1_1280.png

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

Post » Tue May 13, 2014 9:32 am

@aumthong99, this should be easy I hope! You need to encode the sections with spaces. Encode these bits:

caption= Check out my MyGame score of
(including the space at the end before the & symbol)

description= Can you beat my score?"
A big fan of JavaScript.
B
74
S
20
G
69
Posts: 2,208
Reputation: 43,838

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Lordshiva1948 and 48 guests