Git Product home page Git Product logo

fbpages-telegram-bot's Introduction

Metrics

fbpages-telegram-bot's People

Contributors

codacy-badger avatar pxdl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fbpages-telegram-bot's Issues

Errors facebook2telegram.py

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'

Story sending option as post title

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

Facebook GraphAPIError #200

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?

Send large text messages

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

Issue

Only posting caption from posts....
and not links

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.