Facebook based mobile App to access user's FB main page? - android

I want to develop an FB based mobile application where a user can access into his(her) FB main page thru the mobile app.
Then make a user extract info and surf into his friends FB the main page as well. I wonder how to implement it?

I suggest you start with the facebook api for android. It is pretty powerful but it doesn't give you the full level of control that some other web based api's provide. https://developers.facebook.com/docs/android/getting-started
Facebook Login - Enables authentication with Facebook credentials.
Share and Send dialogs - People can share content from your app to Facebook.
App Events - Log events in your application.
Graph API - Read and write to Graph API << *look here for what you want to do*
If this isn't enough, you will want to explore the web and javascript api's which appear to provide more access than the current android api.
https://developers.facebook.com/docs/web
https://developers.facebook.com/docs/javascript
Note that your app may not be able to access all of the information you want it to access unless your friends have also installed your app and given it the appropriate access permissions.

Related

Check if user has an account on WordPress site

I'm working on a mobile app specifically for students at my university. Our school's web portal uses WordPress (or at least the login page is /wp-login.php).
Is there a way to send the user's browser to the login page and then send them back to the app with a confirmation that they were able to sign in? Or even better, include their username? I've tried a bunch of different Google searches, but most of what I've found requires installing/configuring plugins in the WordPress install, but that's not an option, since I'm just a student.
Thank you!
Well, since the site is not hosted at WordPress.com, you will have to implement your own API Endpoint for your Single Sign-On procedure.
But first contact the site's admin or developer/s and find out if they have already implemented such a mechanism.
If they haven't you can see here how to create an API Endpoint in WordPress, that your mobile application will use to authenticate users.
You can find more information here.
If your university's site does not support the functionality and they are not willing to implement it, I 'm afraid that you cannot do anything...

Identity 2.0 Web Api, iOS and Android Clients Facebook app approval always rejected

Here is our setup:
1) a Web Api project with ASP.NET Identity 2.0 with external login support for Facebook.
2)A native iOS App and a native Android App
We are using the appid and secret in the web api and the identity Facebook authorization options. and using web views to do the login process for Facebook. However, we are also, after the user is authenticated, allowing them to share different pieces of the application to Facebook. Currently, the website shows the scope of publish_actions, user_videos and user_photos.
Facebook is telling us that custom web views are not okay, and that we have to use the native SDK's on all of them. What's the purpose of identity providing the ability to utilize getting external accounts and access tokens if you can't even use them on a mobile app? All of our code that does the sharing process happens on the actual controllers in the web api project. We display a popup that allows the user to enter the text that gets posted, just as Facebook describes.
How can we submit a Facebook App that will explain to them that the website is the actual application that utilizes the Facebook actions we are requesting?
Is this even possible? if not, why is the technology even available to allow external logins via an api, when you'd most likely be using it to service a native mobile client??
Thanks for the help,
Brent

Fetching data streams from facebook authentication.

Hi I am designing a mobile app where users can login via facebook. The reason I use facebook login is because I can use facebook to reach out the users friends.
I would like to know is it possible to fetch the user email, friends email, address etc.... using a android app ?
If I can do that I can mass distribute my game.The posts on stack overflow regarding this topic is all on web app. However, I haven't seen any mobile game doing that, it seems most games uses PC version. They fetch those information using the web app not directly through the mobile app itself.
You can use android SDK provided by Facebook.
Graph api provides whatever you need https://developers.facebook.com/docs/android/graph/.
There are many apps using this technique.https://developers.facebook.com/docs/games/mobile/bestpractice
They update user status for advertisement.

Is possible to synchronize a particular facebook page onto an android app?

I was wondering if it is possible to catch feed of a particular facebook page without any authentication and just display all the posts posted by the admin of the page (possibly along with all comments and likes).
I took a look the facebook developers page but could not find anything relevant.
You can access the public information of any Facebook page without any permissions.
However, You do need to register your app on FB first. They only allow access to their Data from registered apps. It's FB's way of making sure they know who's using which data and how much of it.
You can create a new app at this URL
https://developers.facebook.com/apps
Here are links to mobile/web docs for using Facebook's API
https://developers.facebook.com/docs/

How can I use facebook authentication to access my web service from Android?

I'm working on an app which comprises of a web component and a mobile component -
an end user can access the service directly via the web or via a mobile. I would like to have facebook based authentication for the service.
I have developed a simple facebook javascript SDK based login mechanism for the web interface. The server side determines which user is logged in via the cookies. This works fine.
From the Android side, I'd like the user to be able to log in with their facebook credentials to access services on the server side (not facebook specific services). I would like this to work by having the user present the same cookies with the request as are presented when using the javascript SDK.
Having looked at the documentation, it seems that there are more or less two options:
use the facebook Android libraries to enable the mobile app to directly access facebook
use mobile web to afford login to the services
Neither of the above is really what we want - the first is for direct facebook access from
the Android app and does not really relate to a situation in which there is a web service; the second does not integrate with the native mobile app.
I'm guessing that folks must have done this before - any pointers on how to do this?
TIA,
Seán.
You could always develop your application using PhoneGap? It'll save you a load of time and enable you to use your existing FBC code.
I have the same scenario. I have a JSON service that I would like to call from my Android app but as an authenticated user.
Think about it this way. Normally a web service would have some kind of authentication, not necessarily different for every user. So why not conceptually separate out the authentication with Facebook and the authentication with the web service.
The app controls what a user can do and see and thus controls the authentication. If the login to Facebook fails then the app denies the user access to the service.
On the web service side you could just require an api key which you issue to the app like any other api. This key initialises a session so that each device will have a separate session id but they would all use the same api key. Alternatively the email address provided from Facebook could be used as a username together with the api key to initiate a session.
Any thoughts?

Categories

Resources