Page 1 of 1

How to create a service for https://graph.facebook.com/{page-id}/feed

Posted: Fri Jan 24, 2014 7:40 pm
by araskin3i

Hi,

I am trying to create a service that will call the FB Graph API. However, I am confused how to handle the {page-id} part of the URL. WHen I call this URL in test

Illegal character in path at index 27: https://graph.facebook.com/{page-id}/...

I understand that {page-id} is not valid but I cant hard code the value of page-id as it will be different based on what the user selects. How should I handle this when creating a REST service to call?


How to create a service for https://graph.facebook.com/{page-id}/feed

Posted: Fri Jan 24, 2014 8:19 pm
by Maryna Brodina

Hello! In service settings use the following URL prehttps://graph.facebook.com/%7Bpage-id%7D/feed/preIn request parameters add page-id request parameter. Do mapping of necessary value to page-id. This value would be automatically added to URL. This link should help http://docs.appery.io/documentation/r...


How to create a service for https://graph.facebook.com/{page-id}/feed

Posted: Fri Jan 24, 2014 10:40 pm
by araskin3i

Hi Maryna,

Thanks the URL works but I dont think the page-id is being replaced when I call the service. When I inspect the URL I can still see %7Bpage-id%7D in the URL and not the actual page-id that I am binding in.

In the inspector I can see a parameter called page-id which contains the value but it doesn't seem to be replacing it in the URL.


How to create a service for https://graph.facebook.com/{page-id}/feed

Posted: Fri Jan 24, 2014 11:12 pm
by araskin3i

OK I have worked it out.

Under the service settings i change the URL to https://graph.facebook.com/{page_id}/...

then i created a parameter called page_id and the rest was taken care of.

This works now


How to create a service for https://graph.facebook.com/{page-id}/feed

Posted: Fri Jan 24, 2014 11:15 pm
by Alena Prykhodko

Thanks for update.