facebook

'Prophet' object has no attribute 'stan_backend' and there is no answer for me

'Prophet' object has no attribute 'stan_backend' and there is no answer for me Question: I want to use Facebook’s prophet,however when I try to create a model: model = prt.Prophet(stan_backend=’CMDSTANPY’) It occurs mistake like this: Traceback (most recent call last): File "C:UsersUserNameIdeaProjectsstation-simulatestcd-predict.py", line 24, in <module> model = prt.Prophet(stan_backend=’CMDSTANPY’) File "C:ProgramDataAnaconda3envsmy1stcondalibsite-packagesprophetforecaster.py", line 142, in __init__ …

Total answers: 1

Overcoming Rate Limiting in Facebook Marketing API

Overcoming Rate Limiting in Facebook Marketing API Question: Specifically, I’m trying to do something very similar to this question (with the same problem): FB Ads API (#17) User request limit reached However, I’m trying to do this in python (and the API has changed quite a bit since ’15). Here’s my code (and it kicks …

Total answers: 5

brute force script python and mechanize

brute force script python and mechanize Question: I’m trying to brute force the Facebook login page with a python script, however whenever I run the code I get the errors below. My code is: br = mechanize.Browser() br.set_handle_equiv(True) br.set_handle_redirect(True) br.set_handle_referer(True) br.set_handle_robots(False) br.addheaders = [(‘User-agent’, ‘Firefox’)] print “enter target email” email = raw_input(‘>>>’) print “continue at …

Total answers: 1

Python Facebook API – cursor pagination

Python Facebook API – cursor pagination Question: My question involves learning how to retrieve my entire list of friends using Facebook’s Python API. The current result returns an object with limited number of friends and a link to the ‘next’ page. How do I use this to fetch the next set of friends ? (Please …

Total answers: 4

Login to Facebook using python requests

Login to Facebook using python requests Question: I’m trying to find a way to automatically login to Facebook without browser using Python. I experimented with “requests” lib. Tried several ways: URL = ‘http://m.facebook.com’ requests.get(URL, auth = (’[email protected]’, ‘mypassword’)) … form_data = {’email’: ’[email protected]’, ‘pass’ : ‘mypassword’ } requests.post(URL, data = form_data) … requests.post(URL + ‘[email protected]&pass=mypassword’) …

Total answers: 9

python-social-auth AuthCanceled exception

python-social-auth AuthCanceled exception Question: I’m using python-social-auth in my Django application for authentication via Facebook. But when a user tries to login, they have been redirected to the Facebook app page, and they click on the "Cancel" button, the following exception appears: ERROR 2014-01-03 15:32:15,308 base :: Internal Server Error: /complete/facebook/ Traceback (most recent call …

Total answers: 7

Python Social Auth NotAllowedToDisconnect at /disconnect/facebook/1/

Python Social Auth NotAllowedToDisconnect at /disconnect/facebook/1/ Question: I’m trying to use logout with Python Social Auth in a Django app, but I’m getting NotAllowedToDisconnect at /disconnect/facebook/1/ These are my settings: SOCIAL_AUTH_PIPELINE = ( ‘social.pipeline.social_auth.social_details’, ‘social.pipeline.social_auth.social_uid’, ‘social.pipeline.social_auth.auth_allowed’, ‘social.pipeline.social_auth.social_user’, ‘social.pipeline.user.get_username’, ‘social.pipeline.mail.mail_validation’, ‘social.pipeline.user.create_user’, ‘social.pipeline.social_auth.associate_user’, ‘social.pipeline.social_auth.load_extra_data’, ‘social.pipeline.user.user_details’ ) SOCIAL_AUTH_DISCONNECT_PIPELINE = ( ‘social.pipeline.disconnect.allowed_to_disconnect’, ‘social.pipeline.disconnect.get_entries’, ‘social.pipeline.disconnect.revoke_tokens’, ‘social.pipeline.disconnect.disconnect’ ) And this is …

Total answers: 1

Python – Facebook API – Need a working example

Python – Facebook API – Need a working example Question: Ok, so i’ve googled around, i’ve found threads here on stackoverflow and i’ve checked the official Facebook wiki and.. and what not.. I now hope that one of you guys sits on a Facebook API sample code for Python. This is what i’ve got so …

Total answers: 1

How to create an adjacency matrix of mutual friendships from facebook in python

How to create an adjacency matrix of mutual friendships from facebook in python Question: I am doing a project on Social Network Analysis of Facebook Network. I had to get all my friends and who of my friends are friends with each other, mutual frindships inside my network. I did that, I got all id’s …

Total answers: 2

html in facebook wall posts with graph api?

html in facebook wall posts with graph api? Question: Does anyone know if I can create wall posts with html content using facebook’s graph api? And if so, where I could find some documentation/examples? I don’t see anything useful here: http://developers.facebook.com/docs/reference/api/post/ It would appear that I can do this using fbml, but it also appears …

Total answers: 3