Facebook SDK 3.22 (android) - Ways of sharing - android

I use Facebook SDK 3.22 for Android. I want my app to do the following:
Post content on user's wall
Share content with user's friend
For the 1st point I've decided to use feed dialog. So I've made logging in and dialog. It works perefect. No questions about this.
But I confused with the 2nd. At first, I also wanted to use feed diolog with parameter "TO" but with the help of this question
I undersand that I need to invite friend befor posting on it's wall. So I've made invite dialog. But with the help of this question I understand that I can't do even this.
Could you explain to me how can I share content with friend.
P.S My app is not a game and does not have a canvas version. It has only basic permissions

I've decided to post only to the user's wall throw the Feed dialod or Share dialog (if Facebook is installed). You can only send private messages to user's friends

Related

Possible from android app to post pic,text and url in the same post to FB wall?

Is it possible from an android app to post a little picture, an url , and text in the same post to the facebook wall of the person that plays the app? Like "share".... or is it only allowed to post one of them? Some similar posts are old so not sure what facebook allows us today
Yes it is.
Take a look at the Facebook api documentation which can be found here: https://developers.facebook.com/docs/graph-api/reference/v3.1/post

How to Invite facebook friends though my application?

I try using this link this. In this tutorial i post my app link only my wall. But i want to share my app link to all my friends. Same like as a XYZ invited to you to try ABCapp only in notification bar. When click on it open google play store of my app page. I want to share my app app link to app facebook friends or selected facebook friend. How can i achieve this?
To invite friends through your app you can use App Invites. Before using this feature make sure to set up your Android Facebook SDK version to 4.0 or later.
You can take a look at the overview in this link
https://developers.facebook.com/docs/app-invites/overview
For the implementation you probably need this
https://developers.facebook.com/docs/app-invites/android
https://developers.facebook.com/docs/apps/faq#invite_to_app
If your app has a Canvas presence, you may also use the Requests Dialog on iOS and Android
If your app does not have a presence on Facebook Canvas: You may use the Message Dialog on iOS and Android, or the Send Dialog on Web
I assume you donĀ“t have a Canvas presence? In that case you should not use App Requests.
Basically what you need is the list of all the friends of user on facebook to invite them. you can get ALL friends' list only if your app is in "GAME" category.
If not, then you can still get the friend list of user , but only some, not all. refer to terms friends and invitable_friends on facebook.
So, here are few things you can do (BUT NOT RECOMMENDED AT ALL)
Change the category of your app to "GAMES" & you'll be able to get
all friend's list & then you can use WebDialog & WebDialog.RequestsDialogBuilder to invite that friends
give any link to canvas URL on facebook app setting. that link will be used only when user clicks your notification from web. that link won't affect your app in any way.

I have facebook post id, want to show it's content to user

I could not find any solution to this.
How should I show post from facebook to user if I have it's id?
I'd like to show it in dialog similar to the one that is used to send posts to wall.
Other option is to use facebook native application or default webBrowser, however I'd like first option more if it's possible to make.

Instagram and facebook integration

I am trying to post a message to facebook's news feed when a user starts using my android app, without posting it to the user's wall, I noticed instagram is doing this with facebook.
I can't find anything similar to my needs in developers.facebook.com
Does anybody know how this can be done?
I believe that what you are seeing is likely to be this:
https://developers.facebook.com/docs/concepts/mobile-ads/
The only other way to do something similar would be to create and publish an Open Graph Action called 'started using' but I don't believe that this sort of action would be approved and anyway, it wouldn't meet your requirement of not posting to the User's timeline.

How do I publish a score and a link to Facebook now that the "message" field is no longer available?

I have an Android game where I wish to publish to FB the user's result plus a link to the game itself. Since the "message" field is no longer available, how do I go about doing it?
I tried looking at the examples that come with the API but they were of little help.
A nice, simple example would be a real help.
Take a look at https://developers.facebook.com/docs/reference/dialogs/feed/ and make your choice.
As I have answered here: Problem in posting message on facebook wall using android facebook sdk
I would actually post a link and instead of using the message you could use the name, even caption if you would like. Using the name that will be the main text of the link. So you will still get a link to whatever you want.
AFAIK, this is still a valid solution:
Post on user's friends facebook wall through android application
For own wall, you'd obviously use the "me" part in the request.

Categories

Resources