Reputation: 6007
I'm storing facebook userid's and access tokens. Can I post to a selected user's wall with this information? The following code is found at Facebook's developer reference.
I'm just not sure how to run it with Perl.
curl -F 'access_token=$accessToken' \
-F 'message=Check out this funny article' \
-F 'link=http://www.example.com/article.html' \
https://graph.facebook.com/$facebookid/feed
or this code:
curl -F 'access_token=$accessToken' \
-F 'photo=http://samples.ogp.me/$appID' \
'https://graph.facebook.com/me/$appNameSpace:$objectType'
Upvotes: 0
Views: 666
Reputation: 2079
Why not use the Facebook::Graph module to do what you need? It's a rich wrapper around the facebook API.
Upvotes: 4
Reputation: 39158
You need to perform a HTTP POST request with these form data, see method post
in LWP::UserAgent.
Upvotes: 2