How do I ????

Get help using Construct 2

Post » Tue Mar 11, 2014 5:10 pm

hi,
can i add external link or share button to facebook/twitter to my ios app ?
thanks
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Wed Mar 12, 2014 1:58 pm

I have done that using:

this let you share your score by publishing in someone profile.

with the browser plugin you create a browser go to action an there you call a facebook dialog with your information :
"https://www.facebook.com/dialog/feed?
app_id=XXX
&display=popup&caption= XXX
&link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdialogs%2F
&redirect_uri=https://facebook.com
&name=XXX
&picture=XXXX.png
&description= XXX"

it works me on android, but i dont know why it dosent work on iOS, and Windows phone, like in this forum said
viewtopic.php?t=94971&p=750787#p750787
B
9
S
4
Posts: 49
Reputation: 1,239

Post » Wed Mar 12, 2014 2:08 pm

Instead of using the Browser."Go To" action, you'll have to use the "Open in new window" action, then it will work for Windows. I haven't exported to iOS yet.
B
20
S
4
G
1
Posts: 185
Reputation: 2,563

Post » Wed Mar 12, 2014 9:07 pm

danialgoodwin wrote:Instead of using the Browser."Go To" action, you'll have to use the "Open in new window" action, then it will work for Windows. I haven't exported to iOS yet.


yes ... thanks
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Wed Mar 12, 2014 9:09 pm

Message: matrixreal is not yet permitted to post plain text URLS (300 rep required). 1 URLS removed. Why?
juannn91 wrote:I have done that using:

this let you share your score by publishing in someone profile.

with the browser plugin you create a browser go to action an there you call a facebook dialog with your information :
"https://www.facebook.com/dialog/feed?
app_id=XXX
&display=popup&caption= XXX
&link=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fdialogs%2F
&redirect_uri=https://facebook.com
&name=XXX
&picture=XXXX.png
&description= XXX"

it works me on android, but i dont know why it dosent work on iOS, and Windows phone, like in this forum said


XXX is replaced by name of profile facebook for example ?

and for twitter ? its same ?
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Wed Mar 12, 2014 11:14 pm

Hi @danialgoodwin no in iOS it don't work if someone knows why, and can help me thanks

Hi @matrixreal
twitter is like this

https://twitter.com/intent/tweet?text= your_message &lang=es &url=your_url

and here is the facebook documentation. https://developers.facebook.com/docs/re ... logs/feed/
B
9
S
4
Posts: 49
Reputation: 1,239

Post » Wed Mar 12, 2014 11:53 pm

Message: matrixreal is not yet permitted to post plain text URLS (300 rep required). 2 URLS removed. Why?
juannn91 wrote:Hi @danialgoodwin no in iOS it don't work if someone knows why, and can help me thanks

Hi @matrixreal
twitter is like this your_message &lang=es &url=your_url

and here is the facebook documentation.


that mean its for twitter on ios ? you tested it ?
thanks
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Thu Mar 13, 2014 12:21 am

Message: matrixreal is not yet permitted to post plain text URLS (300 rep required). 2 URLS removed. Why?
juannn91 wrote:Hi @danialgoodwin no in iOS it don't work if someone knows why, and can help me thanks

Hi @matrixreal
twitter is like this your_message &lang=es &url=your_url

and here is the facebook documentation.


and how to read score variante ? (of score in game)
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Post » Thu Mar 13, 2014 1:40 pm

in iOS it doesn't work it's something about permissions. Because if you try to open other external link, it works perfectly.

For read the score you need to concatenate with & like this:
"https://twitter.com/intent/tweet?text= I Win "& my_var &" points &lang=es&url=www.my_url.com"


do anyone knows how to do it on iOS ?

Thanks
B
9
S
4
Posts: 49
Reputation: 1,239

Post » Thu Mar 13, 2014 7:06 pm

that mean ...
at time moment share score on facebook or twitter for ios not working ...
B
45
S
16
G
8
Posts: 792
Reputation: 8,306

Next

Return to How do I....?

Who is online

Users browsing this forum: Allardje, Rudi55, sublimate and 2 guests