質問

I'm using PHP SDK to create a post to a friends wall, before the feb 6th changes, I just used the graph api and /[friend id]/feed/ with post and parameters. I'm not sure exactly how to use the dialog feed to create a post to another wall. This is how i have it set up and link them to the url. This is the page it leads me to:

"The page you requested was not found. You may have clicked an expired link or mistyped the address. Some web addresses are case sensitive."

$url = "https://www.facebook.com/[friend id]/feed?
 app_id=[app id]&
 redirect_uri=[redirect url]&
 link=[link]&
 message=[message]&
 picture=[picture url]&
 caption=[caption]&
 description=[description]&
 name=[name]";

//just using facebook.com/dialog/feed?... works fine for posting to my own wall tho.

役に立ちましたか?

解決

You would have to use the to parameter when invoking the feed dialog via direct url. Check the "Direct URL Example" and "Properties" block of the feed dialog reference.

The final url would look something like this (notice the /dialog/feed and to=... parts):

$url = 'https://www.facebook.com/dialog/feed?
        app_id=[appid]&
        link=[link]&
        picture=[picture url]&
        name=[name]&
        caption=[caption]&
        description=[description]&
        redirect_uri=[redirect uri]&
        to=[friend id]';
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top