?
Solved

facebook login issue

Posted on 2011-05-11
3
Medium Priority
?
378 Views
Last Modified: 2012-05-11
I am developing an application called ' photoshoot' on Android., where users can download their friendlist from facebook

Now here is the procedure I follow
I ask for the username password for facebook account to the user...this is followed by permission to allow / disallow my application and then I ask them to fetch their friendlist ( with a button click )

This works perfect..no issues.

However the problem comes when I have the ' Facebook for Android ' application installed

1> If the user is logged in on 'facebook for Android application' and then goes to my application ( photoshoot) it just doesnt work. The screen for username / password itself doesnt come up

2.> If the user is not logged into ' facebook for android ' application and enters my application ( i.e photoshoot)...the screen for username/password comes up, He can login, but the screen for allow/disallow application doesnt come up and he cant fetch his friendlist.
But now if I login to ' Facebook for Android' he is already logged in.

The application works perfect if I dont have ' Facebook for android ' installed. I think it has to do something related to cookies.

Please help
0
Comment
Question by:jbajaj
  • 2
3 Comments
 
LVL 1

Expert Comment

by:webdev2000
ID: 35743184
Authentication and authorization are handled separately. I think that's why you are seeing that behavior
https://developers.facebook.com/docs/authentication/
0
 

Accepted Solution

by:
jbajaj earned 0 total points
ID: 35767137
Hello Friend,
            I got solution of my problem. When I am already login on facebook by native api then my application is not login this is because My hash key is invalid in facebook apps.
II change it using following command
"keytool -exportcert -alias androiddebugkey -keystore debug.keystore | openssl sha1 -binary |

Now My app will run perfectly , thanks a lot for help.

Thank You
 
0
 

Author Closing Comment

by:jbajaj
ID: 35800284
I mention here my solution as comment that I got

Thank You
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
Creating a Cordova application which allow user to save to/load from his Dropbox account the application database.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question