netdjw
netdjw

Reputation: 6007

Post to a Facebook user's wall with curl PERL

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

Answers (2)

preaction
preaction

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

daxim
daxim

Reputation: 39158

You need to perform a HTTP POST request with these form data, see method post in LWP::UserAgent.

Upvotes: 2

Related Questions