Closed sbellity closed 1 year ago
This proposal allows to pass the access_token as Authorization header to FB api instead of query parameter. Does not change the current behavior which is still the default, but adds a UseAuthorizationHeader on the session to enable this feature.
UseAuthorizationHeader
example use:
func newFacebookSession(ctx context.Context, accessToken string) facebook.Session { session := facebook.Session{}.WithContext(ctx) session.SetAccessToken(accessToken) session.UseAuthorizationHeader() return session }
LGTM. Thanks for your contribution!
This proposal allows to pass the access_token as Authorization header to FB api instead of query parameter. Does not change the current behavior which is still the default, but adds a
UseAuthorizationHeader
on the session to enable this feature.example use: