fbarc icon indicating copy to clipboard operation
fbarc copied to clipboard

search command

Open edsu opened this issue 7 years ago • 4 comments

This commit adds a search command where you can search for a variety of entities:

fbarc search page blacklivesmatter
fbarc search place minneapolis

Searching for user, event, group require your app be out of sandbox mode (approved by FB).

Missing from this commit are unittests (I couldn't quite figure out what was going on with the mocks). Also it seemed like paging of some kind would be useful, and that there was support for that that could be leveraged?

edsu avatar Mar 14 '17 16:03 edsu

Thanks @edsu. Just wanted to let you know that I'm (slowly) working on this. I'm looking into user authentication to see if it might enable more search types.

justinlittman avatar Mar 22 '17 15:03 justinlittman

@justinlittman no worries. So are you attempting to get your app out of sandbox mode?

edsu avatar Mar 22 '17 16:03 edsu

So I don't really understand the implications/limitations of sandbox mode vs. authentication types. Any insight you have or resources you can point me to?

On Wed, Mar 22, 2017 at 12:09 PM, Ed Summers [email protected] wrote:

@justinlittman https://github.com/justinlittman no worries. So are you attempting to get your app out of sandbox mode?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/justinlittman/fbarc/pull/2#issuecomment-288450424, or mute the thread https://github.com/notifications/unsubscribe-auth/AAj6L9cNIGq3-QJrLP1F5Ma5iJggl-Mwks5roUeogaJpZM4Mc1KW .

justinlittman avatar Mar 22 '17 16:03 justinlittman

When I try to search for an event I get this:

% python fbarc.py search event toys
{"error": {"message": "(#200) Must have a valid access_token to access this endpoint", "code": 200, "type": "OAuthException", "fbtrace_id": "HsXItBefHXT"}}

Same thing for group, user and placetopic. I seem to have lost the documentation that indicated that the app needed to be out of sandbox mode. I think what the error might be saying is that a user access token is needed as opposed to just app keys. I guess it would take more fiddling around to find out.

edsu avatar Mar 22 '17 16:03 edsu