sns-sdks / python-facebook

A simple Python wrapper for facebook graph api :sparkles: :cake: :sparkles: .
https://sns-sdks.github.io/python-facebook/
328 stars 86 forks source link

Setting app level state #200

Closed ArnoldGihozo closed 2 years ago

ArnoldGihozo commented 2 years ago

Hello! Currently making my way through the source code on here! I noticed that within the oauth flow, the state is set-automatically at the class level as seen here. With that then, whenever the oauth session is requested, only that state is grabbed instead of the one that I can pass through the**kwargs. Is there a way for me to set my own state?

Thankyou!

MerleLiuKun commented 2 years ago

Good idea! May we need to support set this state in initial variables.

I will change this in next release!

Thanks!