skip to Main Content

Getting all my public posts using Facebook Graph API

How can i get all my facebook posts using python code and facebook graph api. i have tried using this code: import json import facebook def get_basic_info(token): graph = facebook.GraphAPI(token) profile = graph.get_object('me',fields='first_name,last_name,location,link,email') print(json.dumps(profile, indent=5)) def get_all_posts(token): graph = facebook.GraphAPI(token)…

VIEW QUESTION

Executing .py file also runs another .py file – Telegram API

I have three files in one dir: # Untitled-1.py print("UTITLEDPY") if __name__== "__main__": from telegram.ext import Updater, CommandHandler, InlineQueryHandler import logging from telegram import InlineQueryResultArticle, InlineQueryResultPhoto, InputTextMessageContent and # test.py import google_image_search print("TESTPY") and this one # google_image_search.py print("IMAGESPY") When…

VIEW QUESTION

How to apply hashing SHA256 on Django LDAP login? – Apache

I'm using LDAP authentication in Django, as shown below and also using password hashers. from django_auth_ldap.config import PosixGroupType, LDAPSearch import ldap PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.PBKDF2PasswordHasher', 'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher', 'django.contrib.auth.hashers.Argon2PasswordHasher', 'django.contrib.auth.hashers.BCryptSHA256PasswordHasher', ] # We use a dedicated user to bind to the LDAP…

VIEW QUESTION

Redis – Django WebSocket DISCONNECT /ws/chat/lobby/ [127.0.0.1:3022]

i want to create chat app, i follow the https://channels.readthedocs.io/en/latest/tutorial/part_2.html here, chat/ __init__.py routing.py urls.py settings.py wsgi.py i added this code to my routing.py from channels.auth import AuthMiddlewareStack from channels.routing import ProtocolTypeRouter, URLRouter import chat.routing application = ProtocolTypeRouter({ # (http->django…

VIEW QUESTION
Back To Top
Search