How do i share the app link via facebook app?

  • Hi, How do i share the app link by facebook app on the device? And not by the browser. I used the promp to share , but did not work

    i just want a onclick object , something like this link posted on the wall with a message " download my game here"...

    https://play.google.com/store/apps/deta ... s.ragnarok

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In the How do I FAQ for Construct 2 there is this item:

    [quote:1111g6sv]Share on Twitter and Facebook (using URLs) - LINK

    You have to create your own "button" (see the same how do I with this term and you'll see how to create a button with a Sprite) and use the Browser plugin but the URL given should give you access to the FB prompt and allow you to share whatever message you want to share.

  • In the How do I FAQ for Construct 2 there is this item:

    [quote:3h0lw4qy]Share on Twitter and Facebook (using URLs) - LINK

    You have to create your own "button" (see the same how do I with this term and you'll see how to create a button with a Sprite) and use the Browser plugin but the URL given should give you access to the FB prompt and allow you to share whatever message you want to share.

    Kyatric

    Thanks for the answer, but that was not the question. I did that 2 days ago, works and is a good post for people logged on facebook on their pc, but is not what i want.

    People are not logged on facebook in their mobile devices ( cellphones and tablets) on the browser, they are logged through the facebook app.

    I want to share through facebook APP, not the browser.

    I tried with the facebook actions in C3 of Publish wall post and publish link, with the same on on your post, but is not working.

  • I did that 2 days ago, works and is a good post for people logged on facebook on their pc, but is not what i want.

    People are not logged on facebook in their mobile devices ( cellphones and tablets) on the browser, they are logged through the facebook app.

    I want to share through facebook APP, not the browser.

    I tried with the facebook actions in C3 of Publish wall post and publish link, with the same on on your post, but is not working.

    Both facebook app or browser facebook are same thing, the only thing different is that the desktop version is using a browser to load it and the other uses a standalone app for mobile however the data shared and all information's in there are both on same delivery methods. the tutorial kiatric sent you should work for both mobile /pc ... if you mean you want the popup browser that shares the game be inside your own app you can do that by opening the browser tab that prompts you to share on Facebook inside a iframe using the iframe plugin. If you mean sharing using the instant games / or gameroom ... you need to setup a bot for instant games or setup the application to load gameroom and instant room. Read the developers.facebook sdk tutorial its pretty simple all on facebook platform.

    Instant games plugin is what you probably thinking the facebook app has however that just got released and the plugin is in beta C3 R92/93 available i actually did a few tests and works pretty good but i didn't used C3 i used C2 and raw implementation of SDK by following the tutorial facebook offers.

    If you want to notify an app inside a android phone to get some shared link you can do that following this tutorial and finding the javascript code for android or facebook app

    here is something you might want also with the tutorial i sent facebook app SDK look at share button and share dialog. you basically need the tutorial shown above that does the whatsapp thingy but instead of calling whatsapp u call facebook app

    https://developers.facebook.com/docs/ga ... tpractices

  • Hi again

    I have a test project, an object with a touch event , and the action "open in a new url" with an example of a game in the google store.

    [quote:26s9xfab]"https://www.facebook.com/sharer/sharer.php?app_id=APP_ID_SECRET_KEY&sdk=joey&u=" & urlEncode("https://play.google.com/store/apps/details?id=com.us.ragnarok&hl=es_419") & "&picture="& UrlEncode("https://lh3.googleusercontent.com/xOWT-k0UwdNKeq7VAcsJnG9elphHphffGtbdc6PvaggLb3iDYQn9fjZw9-gkdzNkOqA=s180") &"&display=popup&ref=plugin&src=share_button&quote=Install this new game "

    The browser action "Open url in a new window", it will open the browser of the mobile device ( and here the user is not logged and if the app ask to log in the browser, the user is not going to do that).

    I want to post on their wall directly the message , through facebook app.

  • Hi again

    I have a test project, an object with a touch event , and the action "open in a new url" with an example of a game in the google store.

    [quote:1u455zer]"https://www.facebook.com/sharer/sharer.php?app_id=APP_ID_SECRET_KEY&sdk=joey&u=" & urlEncode("https://play.google.com/store/apps/details?id=com.us.ragnarok&hl=es_419") & "&picture="& UrlEncode("https://lh3.googleusercontent.com/xOWT-k0UwdNKeq7VAcsJnG9elphHphffGtbdc6PvaggLb3iDYQn9fjZw9-gkdzNkOqA=s180") &"&display=popup&ref=plugin&src=share_button&quote=Install this new game "

    The browser action "Open url in a new window", it will open the browser of the mobile device ( and here the user is not logged and if the app ask to log in the browser, the user is not going to do that).

    I want to post on their wall directly the message , through facebook app.

    What you need to have before starting using the tutorials above is 3 things: 1 have facebook app on your mobile 2 promt the user to login into the facebook app before sharing otherwise wont work you cant bypass that its a security issue things aren't allowed to free share like you want, 3 use this link and go to integration it should be just a copy paste in the execute javascript trough browser plugin https://developers.facebook.com/docs/sh ... are-dialog Remember that without step 1 and 2 this wont work. facebook is not a full open app, is actually one of the most secure apps when comes to prevention against spamming. And what your asking is spam, since you want to bypass the permissions of facebook SDK requirements, and would be impossible. so there is the kiatric way and then there is the 2nd option i sent you. if none of them work then there is no other legal way, both kiatrics information and mine should fix your issue its a matter how you use them, remember the user doesnt know what goes back behind the scenes they dont care, they just want to look like is simple <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">.

    there are up to 3 different ways of implementing a share/wall post 1 inside ur app 2 inside facebook app or prompt a android notification window, 3 browser they are all listed on the links i sent you.

    in the last link in the above reply look for the term Native Share dialog on iOS that is what you want but i guess for android.

  • Ok thanks, i can see why is being considered as a spam. I will read and see what i can do. But it would be nice if facebook allows this kind of share with conditions similar to admob, something like only 1 post with facebook id per week.

  • Ok thanks, i can see why is being considered as a spam. I will read and see what i can do. But it would be nice if facebook allows this kind of share with conditions similar to admob, something like only 1 post with facebook id per week.

    the Facebook app has this new instant games thing released, which allows u to directly share inside the app using a bot however they have rules against spam listed on the instant games section. you can send notifications directly in users chat and stuff like that however are limited to like 2 3 times a week. but so far as i played some games there all bots are spamming the hell out of my mobile phone so i ended just blocking the app to send me any kind of notifications forever.

    so you need to take consideration the annoyance of sharing, sharing and prompting to share was useful last decade since was new, but lately almost nobody wants it without consent, since they dont give their consent for it. unless you do a button inside the app itself for the user to share that would solve all ur issues i guess.

    and yes it would be awesome to have that what you said, however i think it would be just annoying and increase security issues since will be unprotected and umettered content shared by some random developer that maybe fakes his credentials.

    Hopefully you find a compromise of getting a wall post but work with the companies that offers you the platform as well. Cheers.

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