You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We all know that the Facebook graph request requires specific edges for particular permissions. The plugin has just the email permission in the getProfile() functions and hence hard-coded "me" for the graphPath. It would be more robust to have a variable.
Describe the solution you'd like
Use a variable such as below which allows for developers to insert any needed graph edge for permissions. One should be able to search the me or the me/friends edge, for example.
Describe alternatives you've considered
In Plugin.swift change: let graphRequest = GraphRequest.init(graphPath: "me", parameters: parameters)
into let graphRequest = GraphRequest.init(graphPath: gPath, parameters: parameters).
Is your feature request related to a problem? Please describe.
We all know that the Facebook graph request requires specific edges for particular permissions. The plugin has just the
email
permission in thegetProfile()
functions and hence hard-coded "me" for thegraphPath
. It would be more robust to have a variable.Describe the solution you'd like
Use a variable such as below which allows for developers to insert any needed graph edge for permissions. One should be able to search the
me
or theme/friends
edge, for example.Describe alternatives you've considered
In Plugin.swift change:
let graphRequest = GraphRequest.init(graphPath: "me", parameters: parameters)
into
let graphRequest = GraphRequest.init(graphPath: gPath, parameters: parameters)
.That will allow the javascript function to be
Additional context
I added one/two lines of code each in 5 files in the project to achieve this:
The text was updated successfully, but these errors were encountered: