Android How to like Facebook Account using Android App? - android

iam develop one app and up load to Play store, and create facebook account for that specific app.
Question: Is there any way to like a Facebook page using the Android Facebook SDK,? In one of the activity am create button when i click that button how to like My App Facebook account?
Edit:First is it possible in case possible how solve this issue? Any one have idea give me some suggessions?

see https://developers.facebook.com/docs/reference/api/page/.The Facebook documentation for Pages has been updated and is current . You cannot like a Page via the Graph API, even though you can read the like count information. There are not an API for it, you can try this. like android application page in facebook from application itself

Related

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.

App that reads and writes to Facebook

I want to create an app that allows a user to post to Facebook, but I want this to view posts by other users using the app, so basically a blog app in between friends using the app. How do i go about doing this, what API's do i use?
You Need to Checkout,how Oauth2 Works and check the Facebook Sdk for android and ios,there is a sample application in the sdk package,try that it will help and make you know how to use it in your application.

Displaying Twitter User Account Tweets on Android Application Screen

I have a requirement to display Twitter Tweets of a particular User Account on Android Screen?
Could any one Tell me procedure?
First of all you need to sign up to twitter and get an api key from https://dev.twitter.com/apps. Follow the steps there for signup. You probably also want a widget which will help you display the widgets in html - sample code for this is all over the web, just do a search for embedding a twitter widget. If you need native android functionality (not just web) you want to investigate a framework like Phonegap.

Custom Facebook Android App

I have done logging through Faceboo sdk in android and it was successful. Now, What I want is to create a custom login screen and on the press of submit it should send the request directly to facebook server like the original facebook app. I don't want to redirect to facebook's generated login screen. You can say it is like developing our own facebook app. The problem is I'm not getting any API to do this. Does any one knows how to do it..?
Having the user type in their username/password on your own custom login screen is not supported by Facebook. You need to use SSO or the dialog option.
The only solution that I know is to implement sign-in feature at server side, refer these links for more details: http://developers.facebook.com/docs/concepts/login/login-architecture/, http://developers.facebook.com/docs/howtos/login/login-as-app/
I was in similar situation and I'm going to do it. Please let me know if you succeed by this or if you have other solution.

Open some specific Facebook account using Facebook app

I have my android app and I would like next:
When somebody press the button on my application it will load the Facebook application with my facebook page.
Is there a chance to open a my facebook page in the official Facebook app from my app code?
I do not want to give access to my page to all who have the application but only download them my facebook page like for visitors
Well, I personally would use Intent to start up the FB app by typing the package name. like com.facebook.home or whatever activities FB app got
//Simon
It looks like you should be able to set the mime type of the Intent to vnd.android.cursor.item/vnd.facebook.profile (using intent.setType("vnd.android.cursor.item/vnd.facebook.profile");

Categories

Resources