Auto Post Image To Facebook Using Command Line Program for lazy People - Ammadkhalid
Hello lazy people :P
i coded python program who will post to your fb or fb page using their API (app)
here is link to my github
https://github.com/ammadkhalid/fbpy
right now it's still in development and i use it for stuff like post to fb page with image with caption and choose album.
requirements are python3 and then install it using command:
python setup.py install
and then type command:
fb
then for first time installation it will ask for FB APP ID and secret of your app.
and about rest it will guide you. i will not explain more cause it's still in development and i already tell maybe those people can use it right now, who know python programming.
hope no one will mind this post i post it here cause i also post it on my fb and i will be using my steem as my fb :P
Just starting off here and slowly figuring out how to use platform. Checking some of your work and you have a great future ahead. One thing i love about steemit is the wide range in perspectives and talent in the community.
Btw thanks for the support returned in kind. looking foward to the future.
Thanks alot and welcome to steemit buddy!
Very nice man. I am new to python yet I've lernt a little java and c++. Python is rather simple and plain and good for lazy people like us and very powerful also. I enjoy this language.
upvoted and followed
plz same work for me
lol good you are making bot
That's not bot, i made this script for myself only but later i suppose to put it on my github.
That's cool, i use script for routers/switches config
Thanks, i heard that python is the most being lang in networking.
Thank you for following Sir, appreciated much.. more power
nice
sudah di upvote yaa, upvote back ya
Nice! There was one called fbcmd that died, last year, after FB changed their XMPP support, AGAIN.
BTW, I ran
python3 setup.py install --user
to keep it out of the system installation, for now. ;)Thanks, again!
really? i don't know that there was an app. It's my bad habit that i always my own program even they exists on the internet, I know I should make something unique but I code my own programs in order to gain some experience and knowledge.
here is what i forget to explain:
After installation
1.
fb --add
it will show something like:2. Go to https://developers.facebook.com/tools/explorer and select your app
Just like this:
As you can see i have selected my application name as "Auto Page Poster" and my page who is "Bakahub.info".
After That it will ask for permissions then accept the permissions Of bmanage_pages and publish_pages
So First request for Get pages access token and then Request For Publish Pages
3. Then Copy and paste the access token and you will see something like this:
4. here is example how to post.
Now you should have notice something that first argument that i type is baka Instead of bakahub.info this is feature :p that i'm even too lazy to type full word of page so i just baka or i can type b. it will search for account or pages who is added and containing page name "b" and lets suppose you have multiple pages starting with little bit similiar name then just enter full page name or account name. The third is caption and you can leave it empty just by "" and forth argument is album name, in some pages i have album that i already created and so i can post to them as well. It have same thing as page name put full name of album or word, then it will automatically find and upload to it.
In the Url of image you can also put multiple images but seprating them using , (comma) and here is example:
Now you have posted multiple images in single post :)
Of course you can select album too
Only frst (page name) and second (images url) arguments are required, rest are optional
The output ID: {id} is facebook post id
like this: facebook.com/514884698897617_536991373353616
Facebook broke most apps in the last two years, including fbcmd. I am thrilled to see your posts images. Thank you for the information, too!
No problem! i'm so happy to know that someone will use the program who is coded by me :D
keep me watching i will update it soon!