facebook login issue

Posted on 2011-05-11
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 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
Question by:jbajaj
    LVL 1

    Expert Comment

    Authentication and authorization are handled separately. I think that's why you are seeing that behavior

    Accepted Solution

    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

    Author Closing Comment

    I mention here my solution as comment that I got

    Thank You

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    This is an explanation of a simple data model to help parse a JSON feed
    A short article about problems I had with the new location API and permissions in Marshmallow
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the fileā€¦

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now