Mads Marquart
c8f8b818e0
Version up, thanks to @orenyomtov and @ ThatAlexanderA
...
* Added `removeFriend` method, #298
* Removed `lxml` from dependencies, #301
* Moved configuration to setup.cfg instead of setup.py
v1.3.9
2018-06-20 15:53:57 +02:00
Mads Marquart
08922ae284
Moved Travis account configuration into Travis Settings
2018-06-20 14:29:43 +02:00
Mads Marquart
51d606a54e
Merge pull request #298 from ThatAlexanderA/master
...
Added remove friend
2018-06-20 14:29:00 +02:00
Mads Marquart
2b76d71c67
Merge branch 'master' into alexander_master
2018-06-20 13:51:32 +02:00
Mads Marquart
67edd19eb8
Small formatting fixes
2018-06-20 13:51:12 +02:00
Mads Marquart
eaaa526cfc
Merge pull request #301 from orenyomtov/patch-4
...
Replace lxml with Python's built in html.parser
2018-06-20 13:46:56 +02:00
Mads Marquart
843c0f6c37
Merge branch 'master' into patch-4
2018-06-20 13:38:59 +02:00
Mads Marquart
44ebf38e47
Updated setup.py
and requirements, now we use setup.cfg
2018-06-20 13:35:56 +02:00
Mads Marquart
d640e7d2ea
Enabled pypy and pytest session caching, updated README
2018-06-19 13:49:10 +02:00
Oren
66736519ed
Remove lxml dependency
2018-06-14 16:20:57 +03:00
Oren
73f4c98be9
Remove lxml dependency
2018-06-14 16:20:35 +03:00
Oren
b2ff7fefaa
Replace lxml with Python's built in html.parser
2018-06-14 16:19:09 +03:00
Mads Marquart
6116bc9ca4
addUsersToGroup
can no longer return the message id
...
Updated documentation and tests
v1.3.8
2018-06-06 16:39:23 +02:00
ThatAlexanderA
c7cbbdd1c8
Changed dict to query, replaced print with log
2018-06-05 21:56:31 +02:00
ThatAlexanderA
b599033c54
Updated removeFirend
2018-06-05 18:41:09 +02:00
Mads Marquart
7bf6a9fadc
Version up, thanks to @2FWAH
...
* Fixed `onTyping`
* Fixed `changeThreadColor` with `MESSENGER_BLUE `
2018-06-05 13:17:46 +02:00
Mads Marquart
4490360e11
Changed encrypted passwords to point to the free TravisCI version
2018-06-05 13:16:14 +02:00
Mads Marquart
a4dfe0d279
changeThreadColor
now works with MESSENGER_BLUE
again
2018-06-05 12:55:03 +02:00
Mads Marquart
47679d1d3b
Merge remote-tracking branch '2FWAH/fix-ontyping'
2018-06-05 12:51:43 +02:00
Mads Marquart
62e17daf78
thread_fbid
is not available with typ
, there thread_id = author_id
...
Also enabled tests
2018-06-04 23:57:50 +02:00
2FWAH
1f359f2a72
Call onTyping on "typ" or "ttyp" messages
...
FB returns "typ" for ONE-TO-ONE conversations and "ttyp" for GROUP conversations.
2018-06-04 23:25:50 +02:00
2FWAH
cebe7a28c0
Fix onTyping detection
...
FB changed the format of typing notification messages:
- update "mtype" from "typ" to "ttyp".
- Get thread ID from "to" to "thread_fbid" ("thread" looks the same)
2018-06-04 23:25:50 +02:00
ThatAlexanderA
91778f43b7
Update client.py
2018-06-04 16:19:40 +02:00
ThatAlexanderA
e3602e83ce
Added Remove Friend URl
2018-06-04 16:18:32 +02:00
ThatAlexanderA
36742bf30b
Added remove friend def
2018-06-04 16:16:53 +02:00
Mads Marquart
e614800d5f
Update encrypted passwords
2018-06-04 13:57:21 +02:00
Mads Marquart
151a114235
TravisCI integration and updated test suite ( #296 )
...
* Make TravisCI setup
* Use pytest, move tests to seperate files
* Added system to check if `onX` events were successfully executed
2018-06-04 13:44:04 +02:00
ThatAlexanderA
c842be3a52
Update client.py
2018-06-04 13:32:15 +02:00
ThatAlexanderA
a264fac2b4
Update utils.py
2018-06-04 13:29:23 +02:00
Mads Marquart
38f66147cb
Version up, thanks to @orenyomtov and @Abhinav2812
...
Also fixed `Client.isLoggedIn`
v1.3.7
2018-05-18 17:35:03 +02:00
Mads Marquart
ffa26c20b5
Merge branch 'patch-1'
2018-05-18 16:58:32 +02:00
Abhinav2812
430ada7f84
Resolve FBChatException
...
Resolve the error `fbchat.models.FBchatException: Could not get ThreadColor from color: FF0084FF` when threadcolor is set to default (MESSENGER_BLUE)
2018-05-16 17:54:37 +05:30
Mads Marquart
988e37eb42
Merge remote-tracking branch 'orenyomtov/patch-3'
2018-05-08 16:51:03 +02:00
Mads Marquart
1938b90bce
Merge remote-tracking branch 'orenyomtov/patch-2'
2018-05-08 16:50:56 +02:00
Mads Marquart
f61d1403f3
Merge remote-tracking branch 'orenyomtov/patch-1'
2018-05-08 16:50:48 +02:00
Oren
d228f34f64
Eliminate an unnecessary HTTP request during login
...
This change eliminates requesting and downloading the entire FB home page (~160kb) every login.
2018-05-08 15:40:46 +03:00
Oren
97049556ed
Update obtaining fb_dtsg and fb_h
...
fb_dtsg is sometimes returned inside an HTML comment, and beautifulsoup can't find it - in that case we'll use a regular expression to extract it.
fb_h is sometimes not returned in the HTML of req_url.BASE (in my experience, when resuming a session using session_cookies).
Following the discussion here:
https://github.com/Schmavery/facebook-chat-api/issues/505
I learned it is used for logging out, and can be found in the response of `https://www.facebook.com/bluebar/modern_settings_menu/ `.
I included support for fetching it from there.
Because this library is used many more times for logging in, than for logging out, instead of adding an extra HTTP request during login, I decided to perform it during logout, only in case fb_h is not found in the HTML of req_url.BASE.
2018-05-08 12:41:22 +03:00
Oren
b64c6a94cc
Add MODERN_SETTINGS_MENU url to ReqUrl
...
It is used to obtain the fb_h value
2018-05-08 12:18:15 +03:00
Oren
edc655bae7
Fix IndexError: list index out of range
bug
...
When the returned `short_name` is null, `fbchat` throws an exception:
```python
File "/usr/local/lib/python2.7/site-packages/fbchat/client.py", line 792, in fetchThreadList
return [graphql_to_thread(node) for node in j['viewer']['message_threads']['nodes']]
File "/usr/local/lib/python2.7/site-packages/fbchat/graphql.py", line 193, in graphql_to_thread
last_name=user.get('name').split(user.get('short_name'),1)[1].strip(),
IndexError: list index out of range
```
This commit fixes that scenario by accessing the last item in the list via `.pop()` instead of via `[1]`
2018-05-07 19:50:43 +03:00
Mads Marquart
884af48270
Version up, thanks to @gave92
...
Properly fixed `markAsRead`, @gave92 reminded me that I forgot to change the `True` to `'true'` when removing `encode_params`
v1.3.6
2018-03-21 10:05:07 +01:00
Mads Marquart
95f018fad3
Fixed example Echobot
2018-03-19 21:40:51 +01:00
Mads Marquart
b44758a195
Version up, thanks to @gave92
...
Fix `markAsRead` and `fetchUnread`; fixes #261
Added the `ssl_verify` instance variable, which allows disabling SSL varification for proxies
v1.3.5
2018-03-19 21:28:48 +01:00
Mads Marquart
f1c20d490e
Removed encode_params
from PR, as discussed in #269
2018-03-19 21:15:23 +01:00
Mads Marquart
04372d498e
Merge pull request #269 from gave92/FetchUnread
...
Fix `markAsRead` and `fetchUnread`; fixes #261
Added the `ssl_verify` instance variable, which allows disabling SSL varification for proxies
2018-03-19 21:08:45 +01:00
Marco Gavelli
63ea899605
fix for python3
2018-03-19 20:47:41 +01:00
Marco Gavelli
4fdd145d1e
verify in _postFile
2018-03-19 16:52:22 +01:00
Marco Gavelli
57ee68b0e0
added documentation to markAsRead
2018-03-19 16:38:19 +01:00
Marco Gavelli
99c6884681
added documentation to fetchUnread
2018-03-19 16:29:26 +01:00
Marco Gavelli
1c1438e9bc
fix for markAsRead, fetchUnread
2018-03-18 11:18:46 +01:00
Marco Gavelli
22f1b3e489
fix FetchUnread
2018-03-17 19:32:45 +01:00