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.
Related
Hello I am using the SwarmConnect Social feutures for my Game to have a leaderboard.
Besides that i don't know yet how to costumize...their Documentation is very poor...
I have also trouble to connect to Swarm via the Facebook log in...maybe the twitter and google logins dont work as well who knows...
But the normal login works fine i can see in my admin panel the score i have submitted.
What does go wrong there?
I enteter my login details and then there is just a blank frame that i can close and still am not logged in!!!
Edit: I would also appreciate that at least if you know one, to tell me a better solution for a Lederboard in my game that is free and supports at least facebook login, Google plus and or twitter
I suggest You try openkit:
https://github.com/OpenKit/openkit-android - there You have some examples and better documentation.
Or You can Try use facebook score Api as some other SO user suggests:
https://stackoverflow.com/a/13692956/1257522
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
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.
In my application some texts are posting in the Twitter. Each time while posting in the twitter "Authorize app" comes and user have to authorize the application each time while posting text in the twitter. I want user have to authorize the application for the first time not the each time. I have used the twitter sample code from the github. Please help me to solve the issues. Thanks.
You're better off using Twitter4j library, it's listed on the official site (has unofficial status though)
You most likely are using twitter-android-sdk which can only auth over WebView, which is very limiting.
The up-to-date way to use Twitter API is to use oAuth and Twitter4j can do that, check out the link above, it has examples.
UPD
Also, if posting to Twitter is not your app's main purpose (like you want to give the user the ability to share something but they won't be doing so 60% of the time), you're better off using an Intent broadcast to share your content - that way if user has Twitter app installed, they won't have to authorize in your app at all, more details here and here if you are targeting API14+
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.