User avatar
Grumpy Mike
Posts: 936
Joined: Sat Sep 10, 2011 7:49 pm
Location: Manchester (England England)
Contact: Website

Posting a graphics file to Facebook

Fri Feb 01, 2013 11:03 pm

I am trying to post a graphics file to Facebook.
At the moment I have a Python script sending an email to Gmail, then using that to trigger an IFTT sequence that posts the picture. The only problem is that the email has to contain the URL of the image rather than the image itself.
Anyone know a way round this?

I have looked at the facebook SDK but that seems to require me to register as a facebook developer and also requires me to specify the URL of where the commands will be coming from. As this is not going to be constant I don't think this is the right route. Anyone disagree with this?

Thanks

-rst-
Posts: 1316
Joined: Thu Nov 01, 2012 12:12 pm
Location: Dublin, Ireland

Re: Posting a graphics file to Facebook

Mon Feb 04, 2013 5:40 pm

The mobile FB apps can upload an image from a handset, so there must be an API, but maybe it just is not public.

As a workaround, you could maybe upload the image to somewhere else first, then email FB the link to that place?
http://raspberrycompote.blogspot.com/ - Low-level graphics and 'Coding Gold Dust'

User avatar
Grumpy Mike
Posts: 936
Joined: Sat Sep 10, 2011 7:49 pm
Location: Manchester (England England)
Contact: Website

Re: Posting a graphics file to Facebook

Tue Mar 19, 2013 6:09 pm

-rst- wrote:As a workaround, you could maybe upload the image to somewhere else first, then email FB the link to that place?
Yes that is exactly what I am doing at the moment as I said:-
At the moment I have a Python script sending an email to Gmail, then using that to trigger an IFTT sequence that posts the picture. The only problem is that the email has to contain the URL of the image rather than the image itself.
That means the image has to be on a file server somewhere.
The mobile FB apps can upload an image from a handset, so there must be an API,
It could be that the files go to an intermediate server first.

Return to “Python”