How do I ????

0 favourites
  • 15 posts
From the Asset Store
Air War 1941
$5.60 USD
60% off
Full game Construct 2 and Construct 3 to post on Google Play
  • hi,

    can i add external link or share button to facebook/twitter to my ios app ?

    thanks

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

  • 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.

  • 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

  • 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 ?

  • 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/

  • 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

  • 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)

  • 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

  • that mean ...

    at time moment share score on facebook or twitter for ios not working ...

  • up

    ???

    any idea ?

    any one try and success ?

  • work's on iOS windows phone and android, it was the url encoding <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">.

    use encodeURI function of javascript before send your url to the browser action, you cold do it by a plugin or modifying the browser plugin

    i have wrote a tutorial for this:

    https://www.scirra.com/tutorials/914/fa ... r-cocoonjs

  • thanks

    i try it

    it work but it display only this message for example " my best score on this game is " and not display the real score

    you understand me ?

  • excellent that work for me

    but i dont understand ....i dont use encore plugin .. i use directly browser plugin because when i try to add the encode url to runtime browser plugin its already here .

  • hi,

    any one have tested it these facebook sharing score method work on IOS ?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)