How to invite facebook friends, although my application?

I am trying to use this link . In this tutorial, I post the link to the app only to my wall. But I want to share a link to all my friends. Same as XYZ, they suggested you try ABCapp only in the notification panel. When you click on it, open the Google Play store on the page of my application. I want to share a link to the app’s application with friends on Facebook or a selected friend. How can I achieve this?

+5
source share
4 answers

To invite friends through the app, you can use App Invites. Before using this feature, be sure to configure the Android Facebook SDK version to version 4.0 or later.

+4
source

https://developers.facebook.com/docs/apps/faq#invite_to_app

If your application has a Canvas presence, you can also use the Queries dialog box on iOS and Android

If your application does not have a Facebook Canvas presence: You can use the Message Dialog on iOS and Android or the Internet Send Dialog

I assume you have no Canvas presence? In this case, you should not use application requests.

+2
source

Basically, you need a list of all the user's friends on facebook to invite them. You can get a list of ALL friends only if your application is in the "GAMES" category.

If not, you can still get the user's friend list, but only some, not all. refer to the terms friends and invitable_friends on facebook.

So, here are a few things you can do (BUT NOT ALL IS RECOMMENDED)

  • Change your app’s category to “GAMES” and you can get a list of all your friends, and then you can use WebDialog and WebDialog.RequestsDialogBuilder to invite friends

  • specify any link to the canvas URL in the facebook application settings. this link will only be used when the user clicks your notification from the Internet. this link will not affect your application in any way.

0
source

If you are developing a corner application, you can follow the links below. Work in nice

https://github.com/MurhafSousli/ngx-sharebuttons

0
source

Source: https://habr.com/ru/post/1213026/


All Articles