Page 2 of 3
Issues with Facebook data mapping
Posted: Wed Jul 31, 2013 7:53 pm
by Obed Eugene
Great. It worked when I created a fresh page. But, Im still having to reload the page before the data gets propogated. Is there a way to automatically show the data the first time the page is loaded?
Also, Im having issues getting the profile picture to show. How can I do this?
Issues with Facebook data mapping
Posted: Thu Aug 01, 2013 7:49 am
by Maryna Brodina
Hello!
[quote:]Is there a way to automatically show the data the first time the page is loaded[/quote] on page Load invoke GetToken service. On complete GetToken service event (after you set localStorage variable access_token) run GetData service. Don't invoke these services at the same time on Load/Show events. GetData should be invoked only after GetToken and after you set localStorage variable access_token.
[quote:]The URL of the user's profile pic (only returned if you explicitly specify a 'fields=picture' param)[/quote] see https://developers.facebook.com/docs/...
Make a request with URL like this one codehttps://graph.facebook.com/me?fields=picture&access_token=xxxxxxxxxxxxxxxx/code you'll get in responce something like code{
"id": "xxxxxxxxxxxxxx",
"picture": {
"data": {
"url": "https://fbcdn-profile-a.akamaihd.net/hprofile-ak-prn2/xxxxxxxxxxxxxxxx.jpg",
"is_silhouette": false
}
}
}/code
map URL parameter to inage asset
Issues with Facebook data mapping
Posted: Fri Apr 25, 2014 2:06 am
by Michael Brandon
Hi Maryna,
Could you explain this part a little more in detail?
"The URL of the user's profile pic (only returned if you explicitly specify a 'fields=picture' param)
see https://developers.facebook.com/docs/...
Make a request with URL like this one https://graph.facebook.com/me?fields=... you'll get in responce something like {
"id": "xxxxxxxxxxxxxx",
"picture": {
"data": {
"url": "https://fbcdn-profile-a.akamaihd.net/...",
"is_silhouette": false
}
}
}
map URL parameter to inage asset"
Do I make these additions in the FacebookMe_services within the Requests? Am I to add "fields=picture" in the "add new parameter" input?
Thanks,
Issues with Facebook data mapping
Posted: Fri Apr 25, 2014 3:05 am
by Alena Prykhodko
Hello Michael,
Yes you should add fields=picture to the service parameters.
Open "Facebook_MeService" service.
Select "Request" tab.
Add "fields" parameters with value "picture".
Issues with Facebook data mapping
Posted: Fri Apr 25, 2014 10:29 am
by Michael Brandon
Thank you for the quick response. Could you throw up a screen shot for reference?
Issues with Facebook data mapping
Posted: Fri Apr 25, 2014 5:51 pm
by Kateryna Grynko
Hi Michael,
Here is how to add a request parameter: http://docs.appery.io/documentation/r...
Issues with Facebook data mapping
Posted: Sat Apr 26, 2014 2:42 am
by Michael Brandon
Thanks for that. Although, I'm still a little lost. In your above post you mentioned making a request to this URL (https://graph.facebook.com/me?fields=...). Is this intended to be set up as a separate Service (not within the Facebook_MeService) but with peram fields and value picture? And if so, do I need to manually enter the Token where you listed "xxxxxxxxxxxxxxxx" ?
Currently, in my Facebook_MeService it points to https://graph.facebook.com/me. So I simply added the new peram and value within the Request, tested and got this (see image). Is my access_token not mapped currently in the Request? (see 2nd image)
Thanks again for your help here. I apologize for the extra time.
Issues with Facebook data mapping
Posted: Mon Apr 28, 2014 2:47 am
by Alena Prykhodko
Hi Michael.
Please see the following screen shots:
1 urls is "https://graph.facebook.com/me"
2 adding a parameter
Issues with Facebook data mapping
Posted: Mon Apr 28, 2014 3:13 am
by Michael Brandon
That is exactly what I have. And as show earlier, here is the error I get.
Issues with Facebook data mapping
Posted: Mon Apr 28, 2014 1:17 pm
by Kateryna Grynko
Hi Michael,
What session token do you pass? How did you get it from Facebook?