pxdl / fbpages-telegram-bot Goto Github PK
View Code? Open in Web Editor NEWA bot used for posting Facebook page updates to Telegram channels
License: MIT License
A bot used for posting Facebook page updates to Telegram channels
License: MIT License
Currently the bot only sends the main picture of a post if it finds a multi-upload "photo" post.
Hello.
Errors when i run python facebook2telegram.py :
Traceback (most recent call last):
File "facebook2telegram.py", line 671, in
main()
File "facebook2telegram.py", line 653, in main
loadSettingsFile(settings_path)
File "facebook2telegram.py", line 61, in loadSettingsFile
config.read(filename)
File "/usr/lib/python3.5/configparser.py", line 696, in read
self._read(fp, filename)
File "/usr/lib/python3.5/configparser.py", line 1077, in _read
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: '/home/karadm/telegram/facebook/fbpages-telegram-bot-master/botsettings.ini', line: 2
'locale: en_US\n'
What do you think about optional story sending?
I did play a bit with fbpages-telegram-bot and want to say that when you use several pages as posts source it's very comfortable to see where it comes from.
What you think about this view?
message 1: Cool Page shared Another Cool Page post.
message 2: Outer comment for shared post
message 3: Shared post itself
I have a problem getting the Botscript working
jk@ubuntu:~/fbpages-telegram-bot$ python3 facebook2telegram.py
Loaded settings:
Locale: de-DE
Admin ID: 12345678
Channel: @my_Telegram_Channel
Refresh rate: 300.0
Allow Status: False
Allow Photo: True
Allow Video: True
Allow Link: True
Allow Shared: True
Allow Message: True
Getting most recent posts dates...
Traceback (most recent call last):
File "facebook2telegram.py", line 671, in
main()
File "facebook2telegram.py", line 658, in main
getMostRecentPostsDates(facebook_pages, dates_path)
File "facebook2telegram.py", line 216, in getMostRecentPostsDates
fields='name,posts.limit(1){created_time}')
File "/home/jk/.local/lib/python3.5/site-packages/facebook/init.py", line 114, in get_objects
return self.request(self.version + "/", args)
File "/home/jk/.local/lib/python3.5/site-packages/facebook/init.py", line 272, in request
raise GraphAPIError(result)
facebook.GraphAPIError: (#200) Access to this data is temporarily disabled for non-active accounts due to changes we are making to the Facebook Platform
Is it right, that facebook changed something with the API or do I have another problem?
If separate message has more than 4096 characters, it will fail to send due to telegram limitation.
It's easy enough to fix by splitting big message into list of string items and send it while list length would be bigger than 0
Only posting caption from posts....
and not links
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.