Open some specific Facebook account using Facebook app - android

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");

Related

Why Facebook Login does not work with my instant app?

When I try to login on my Instant App which use the Facebook Login for Android library, the login is stucked within the Facebook flow, I am not able to get back to the app. The login works when I use the full app.
It is not possible to use an other deep link that the one you use for the verified app link which launch your instant app. One way to resolve the problem is to parameterize the app link (using the query string) to trigger the different behaviours you want.
Then, Facebook Login for Android which use a deep link to get back to the app will not work, you need to change the oauth redirect uri used by the SDK by going to the Facebook developer console > Facebook Login > Settings. A solution to resolve the problem for Instagram is to use the API Graph for Instagram which also use Facebook Login.

Facebook android SDK login action

I'm new to Facebook SDK.
So as far as I read from their tutorial, when you use custom button with their loginManager, it starts an intent of webview or the native FB app to ensure the login.
So my question, is there a way to make it custom ? like using edittext of android to get the username/password then start the login session.
Thanks.
Regards.
You can not do that for security reasons. With the facebook sdk, your app open a webview or the facebook app if the user already has installed.
If you want to save some user data, you have to set the proper permissions and you can get it with the user token and the facebook graph api.
Regards!!

Error : Sorry this page not available on facebook

I have just integrated the facebook SDK in android native app, I created a app on facebook dashboard to integrate a facebook SDK in android native app.
I am successfully posted the message on the facebook through my android native app, it shows my app name "Sooligan", when I am clicking on this "Sooligan" it is redirecting to me on page not available.
Please see attached screenshots.
Clicking on Sooligin it is redirected to below page
Guys any way to solve this problem so that it should open any page which I want or anything related to that
Under Basic Info in your app settings on Facebook you will need to set your Canvas URL. When that page is called it will send the variable fb_source which will tell you if it came from the application or your facebook page, etc. You can then choose to redirect it however you want (if you want to).
I solved this simply add the website in the platform also, there I have added my website URL which I want to open for ex : www.google.com

Android How to like Facebook Account using Android App?

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

Intent for facebook signup/register page in android

I have a link in my application that needs to display the sign up page of Facebook. Is there and intent that i can start that will open a browser or android application to display it? Thank you.
Yes, you can signup/register facebook page from your application. Refer the link here to
know how to add up facebook activity from your application. Remember that, you need to generate APP ID from your facebook account to connect facebook from your application.

Categories

Resources