Skip to content
This repository has been archived by the owner on Mar 26, 2020. It is now read-only.

search command #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

search command #2

wants to merge 1 commit into from

Conversation

edsu
Copy link
Contributor

@edsu edsu commented Mar 14, 2017

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?

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?
@justinlittman
Copy link
Owner

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.

@edsu
Copy link
Contributor Author

edsu commented Mar 22, 2017

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

@justinlittman
Copy link
Owner

justinlittman commented Mar 22, 2017 via email

@edsu
Copy link
Contributor Author

edsu commented Mar 22, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants