Rename id param in get_object() to object_id#198
Rename id param in get_object() to object_id#198dursk wants to merge 4 commits intomobolic:masterfrom
Conversation
In order to specify 'id' as a keyword argument, we cannot use 'id' as a positional argument name.
|
In the issue you opened, you mentioned |
|
The method is: So as is it definitely takes in keyword arguments. I assumed this was so that you could pass in keyword arguments to finally get them to go through In the line I posted that fails: I'm in a situation where all I have is a URL, and I'm trying to find the comments associated with it. |
|
I think you want to do Let me know if I am missing something, or if there is another object/node in the API that uses "id" as a parameter. |
|
Actually, my FB Graph query is slightly incorrect, but the same issue still holds. Technically the breaking line would be: Note: this is for v2.1+ |
|
The comments are not traditional comments, they're via this: https://developers.facebook.com/docs/plugins/comments. But even with that specific use case aside, you can still query the graph like so: which would translate to: and is currently broken. |
|
Does Would Regardless, I think moving away from using Python built-ins as variable names is a good idea. |
|
The documentation is surprisingly poor, but yes, everything I've found to date has shown that If you had the |
|
Any chance you would be willing to write a unit test for this? |
|
Sure! |
|
Done. |
There was a problem hiding this comment.
facebook.get_app_access_token is deprecated and might be removed in the near future. Can we use the GraphAPI().get_app_access_token here?
There was a problem hiding this comment.
Done. My bad on that, I followed the same pattern as a test above it which I guess hasn't been updated yet.
|
Updated. |
|
+1 When is 2.0.0 planned to be released? |
In order to specify 'id' as a keyword argument,
we cannot use 'id' as a positional argument name.
This is a fix for: #197