I already read a post here How to send friend request using Facebook dialogs on Android?
However, I'm not sure how to implement the advice. It seems like the accepted answer is now unavailable from facebook. And the second answer, which seems to be how people do it now, I'm not sure what params to use and I can't find it anywhere in the facebook docs.
Here is some info on how to send requests from facebook.
https://developers.facebook.com/docs/android/send-requests
I suggest you download the sample app (FriendSmash) to see how they implement Facebook api on Android application
Related
I have tried to comb through the Facebook Developers documentation http://developers.facebook.com/ but haven't been able to answer this question.
I would like to be able to send Facebook friend requests and accept friend requests in a webapp. Does Facebook API allow/enable such a function?
Have you tried this ? Its the recommended option since the api doesnt allow you to add randomly people with a call.
http://developers.facebook.com/docs/reference/dialogs/friends/
Edit: Here you have the reference for dialogs in android sdk
https://developers.facebook.com/docs/reference/androidsdk/dialog/
i have the following problem: I tried to post sth. to Facebook by using ACTION_SEND Intent to pass a String to the Facebook application.
Now I know this is currently not possible.
I don't want to code my own Facebook login, logout, session handling stuff in my application.
Question is:
If someone has the Facebook App installed and is logged in,
can I use the authentification information to post sth. on his Facebook wall?
Or, what is the easiest way to get sth. posted?
thanks
I would recommend using the Spring Social Facebook library. It will take care of all the OAuth stuff for you and provide you with a nice Facebook API you can interact with. The API allows you to do a lot more things than just post.
The downside is you have to install the jar files with your app and do a little setup. There is a good example of how to do this for Android in the spring-android-showcase-client in the spring-android-samples project.
I am trying to create an Android app and I want to send a Facebook friend request through Android Facebook API. I have spent some time but couldn't find an interface for this. Is this possible to do this through Facebook API if I know the person's Facebook id?
It is recommended that you use the Friends dialog: see http://developers.facebook.com/docs/reference/dialogs/friends/ for details.
Any Example suggestion that really works currently with Twitter OAuth?
I just need a simple API to post from an Android App, no need for something fancy and full feature, something that just works fine for authentication, doesn't crash and can update status.
I tried at least 4 examples poested before, all of them fail at some point.
Regards,
I had success with the Twitter4J library. For my purposes the login credentials were hardcoded into my app though. It was not a situation where each user could log in to their own twitter account. But the library was very easy to use for retrieving statuses and posting a tweet.
Is there any SDK of Twitter available through which we can implement Twitter in our application? I want that my application would load on his/her Twitter account and then the tweet should be sent to his/her account, but I cannot find any simple examples.
Something like the Facebook Android SDK is what I'm look for.
You can use twitter4j. This site also contains some usage examples.
Unfortunately with the introduction of oAuth, login is no longer trivial. You have to register your application with Twitter (go to your account, then applications and add the app there). This will give you a consumer key/token pair, that you need for logging in and that you need to keep secret.
I've implemented this in my Android-Client called Zwitscher.
You can have a look at the Login procedure in the LoginActivity (of the v0.65 tag).
If you just want to post a tweet to twitter, use the Android SEND Intent. That way, the user can choose what he want's to do with the post himself. It's much easier for you as well. No worrying about OAuth etc.
As #Heiko said, twitter4j is quite good. You should use it.
For an example of how it works, I have created a simple sample app that can be found here.
Check that out, maybe it helps you.
AFAIK there is no sdk provided for twitter. You can however use XAUTH for twitter.
It is fairly easy to implement it.
This post might be able to help you.
xAuth Authentication for Twitter Share in Android?