Lance
Lance

Reputation: 4820

Do I need to do modrewrite in order for this to work?

I'm working with the facebook api. Looking at the documentation on the site here.

Look at the example that you need to connect to via http post:

https://graph.facebook.com/me/recipebox:cook?
recipe=http://www.example.com/pumpkinpie.html&access_token=YOUR_ACCESS_TOKEN

But, the "recipe" (really an MLB game) in my case has a link of:

http://www.sportannica.com/team.php?team=New York Yankees&year=2012

Do I need to use modrewrite to make my link compatible with its place in the facebook graph url? having another question mark in the URL kinda messes things up.

Upvotes: 0

Views: 34

Answers (1)

drew010
drew010

Reputation: 69967

Probably not, try using urlencode on the URL you pass for the recipe parameter.

$recipeurl = 'http://www.sportannica.com/team.php?team=New York Yankees&year=2012';


$url = 'https://graph.facebook.com/me/recipebox:cook?recipe=' .
       urlencode($recipeurl) . '&access_token=1234';

Upvotes: 1

Related Questions