Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull Profile Image #14

Open
eliashajj opened this issue Jul 22, 2015 · 2 comments
Open

Pull Profile Image #14

eliashajj opened this issue Jul 22, 2015 · 2 comments

Comments

@eliashajj
Copy link

Hello,

I am trying to pull the user profile picture but with no luck.

I tried

var facebook=require(rebel.facebook)

and after login, I tried these two options:

facebook.requestWithGraphPath"/me",params,'GET',function(e){
    Ti.API.info("http://graph.facebook.com/"+e.result.id+"/picture");
});

which gave a javascript error
and:

facebook.me(function(e){
    Ti.API.info("http://graph.facebook.com/"+e.result.id+"/picture");
});

This one gave an error on the result. If I just trace "e", it contains the user id and the full name only, not even the email.

Can you please point out if these options are available and which function to use.

@timanrebel
Copy link
Owner

@eliashajj Although I do not like to say this, but the current Appcelerator modules are probably more feature complete, so I would advice using those.

That said, you could try calling:

https://graph.facebook.com/me/picture?access_token=XYZ

When you provide the Graph AI with an access token you can use me instead of the user id

@eliashajj
Copy link
Author

@timanrebel

Thanks for the help.

Although the appcelerator module is more complete, your module is very easy to use and most importantly has 64bit support for iOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants