araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

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

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

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

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...

araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

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

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.

araskin3i
Posts: 0
Joined: Fri Dec 20, 2013 2:44 pm

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

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

Return to “Issues”