Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Facebook log in on iOS 8 seems to be broken

$
0
0

The following code:

var fbmod = require('facebook');
    fbmod.appid = 1376404972593019;
    fbmod.permissions = ['read_stream'];
    fbmod.authorize();
    fbmod.addEventListener("login",function(e){ 
        fbmod.reauthorize("email", "me", function(e){
            alert(e);
        } );
    } );
    fbmod.requestWithGraphPath('/me', {}, 'GET', function(e) {
            if (e.success) {
                alert(e.result);
            } else if (e.error) {
                alert(e);
            } else {
                alert('Unknown response');
            }
        });
Will cause the facebook app to open with a blank white view and a cancel button. Nothing more.

If I remove the following:

fbmod.authorize();
    fbmod.addEventListener("login",function(e){ 
        fbmod.reauthorize("email", "me", function(e){
            alert(e);
        } );
    } );
The graph call is made but it returns Error 5. Researching that code seems to bring me to problems with write permissions not read (which is all I have);

I simply want to create a log in with facebook button, and use the returned email address to associate the current user with a user in my database (registration is possible without facebook login).

Does anyone have any ideas, or better approaches? Like I said I just need basic user info and email address.


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>