Home
Digiwonk

How to Search Public Posts on Facebook

Jun 18, 2014 01:27 AM
Article cover image

The newer Graph Search in Facebook can help you find friends in specific cities, photos of a particular subject, restaurants that your friends liked, and a whole lot more. One thing it can't help you with just yet is searching public posts on Facebook, which you could do in the previous search version.

635386195764890454.jpg

Actually, some users do have the option to search public posts with Graph Search, but it's very limited and doesn't include me. If you're like me and don't have access yet, there is a workaround, but it takes a little work. Once you get passed the initial steps, future searches will be a cinch.

Visit the Graph API Explorer Page

To perform public post searches, we'll be using the Graph API Explorer tool available on the developers section of Facebook. You can find it on the Tools page, or you can click here to go directly there.

635386225131766015.jpg

Set Up the Search Query

By default, the "GET" field will have "me?fields=id,name" listed, but you'll need to change that to "search?q=" to perform a basic search.

635386211056298759.jpg

To make the process easier, just use the following link to get there.

Now, before you actually get to searching, there are still a few other things we have to do before proceeding. Once it's all done, there will be a shortcut you can use to perform searches, but we'll get to that after the initial setup.

Change the Version Number

You'll need to change the "API Version" from "v2.0" to the old-style "v1.0" search function to get this to work. If you don't change it, you'll get an error. You can also use the "Unversioned" one if you want.

635386211850358999.jpg

If you try to perform a search now, you'll get another error code, so head to the next step to fix this.

Get an Access Token

To use the Graph API Explorer, you'll need an access token. Go ahead and click on the "Get Access Token" to get one.

635386215121452800.jpg

Don't check anything in the lists. Ignore all of that and just hit the second "Get Access Token" button to proceed.

635386215900671938.jpg

Allow the Graph API Explorer Access

When the log in page appears, select "Okay" to give the Graph API Explorer app access to your public profile (name, profile picture, age range, gender, language, country, etc.) and friends list (which anyone can actually access using this friends list hack).

635386216542546634.jpg

You can always remove permissions later on the Apps Settings page.

Afterward, you will see a very large alphanumeric code in the "Access Token" field. This is what allows you to do the search you're about to perform. If for some reason the next step doesn't work for you, try clicking on "Debug" and debugging your access code, then try again.

Perform a Search

This is the easy part. After the "search?q=" part in the search box, just enter your word(s) and hit the "Submit" button. You'll see a bunch of code appear in the gray box below.

635386244779422047.jpg

Reading the Results

The code in this box is displayed in JSON, but all you need to worry about is finding the URL of the public post.

635386245298640839.jpg

Just right-click on the "link" portion of the code and select "Open Link in New Tab" to view the public post in its entirety.

635386229361453663.jpg

Find the Original Post (Optional)

Now, if you want to find out who posted about your particular search term first, it's more than likely going to be on your first attempt. Just look for the "via" link and go check it out on their page.

635386232111140447.jpg

If you don't care what the original post is, or if there even is one, then you're free to search the remaining search results. If you're hunting for the original share, then you'll probably see it in the results, but choosing the first one is faster. Just look for the "link" and you're golden.

The Shortcut Method: Use This Link

Now that you've given the Graph API Explorer access to your profile, you can shorten things up by just using the link below, replacing the search query with your own in-between the "%3D" and "&version=v1.0".

You will still have to hit the "Submit" button to perform your search, and if you don't see an Access Token, you will have to repeat that process before the search will work, but since you have given the Graph API Explorer permissions, it'll be a whole lot faster.

Related Articles

Comments

No Comments Exist

Be the first, drop a comment!