How to test Facebook Chat Heads and stickers for iOS right now, even if your account hasn't been enabled for them yet

How to test Facebook Chat Heads and stickers for iOS right now, even if they haven't yet been enabled for your account

Today Facebook released a fairly major update for the iOS Facebook app. Among the new features are messenger stickers and Chat Heads (a horribly named feature first announced for Facebook Home). Currently these new features have only rolled out to a limited number of users. However, if you have an urgent need to test them out, and you don't mind doing a little tweaking, you can temporarily enable them on your iOS device right now.

The easiest feature to enable is Chat Heads. Chat Heads basically gives you a way to quickly access your current messenger conversations no matter where you are in the app. Whether or not the app shows this feature to you is determined by a key stored in a property list. Using PhoneView, you can navigate to Facebook/Library/Preferences on your device and grab the file com.facebook.Facebook.plist. This plist holds a number of keys and values that the Facebook app uses to determine how it should behave. Open the plist in Xcode (or your favorite plist editor) and look for the key 'messenger_chat_heads_ios. If this key doesn't exist in your plist, you can just add it to the top level of the file. Simply change that key's value to YES (or </true> depending on what you're editing it in), save the plist, and drag the modified plist back onto the device using PhoneView. After putting the modified plist onto your device, kill the Facebook app and relaunch it in order for it to read your new settings. Now when you have chat conversations going with people, you should see little circles with their avatars persist on the screen as you navigate around the app.

So what about stickers? A plist value also exists for them, but if you set it to YES the app just sets it back to NO every time you launch the app again. The reason the value keeps getting set back to NO is because the Facebook app is phoning home and checking with the server every time to see if you're supposed to get stickers. Naturally the way to get around this is to change what the server is saying.

While there are a number of tools available to proxy and modify network traffic, my favorite is Charles Proxy. One of the features that Charles Proxy offers is rewrite rules. It's basically Find & Replace for your traffic. The first thing you'll need to do is proxy your device's traffic through Charles. When you launch the Facebook app you should see a request come through that looks something like this 'https://api.facebook.com/method/fql.multiquery?sdk=ios&queries=%7B%22awholebunchofotherstuffgoeshere'. If you look at the response, you'll see the value that is telling the Facebook app to set your sticker permissions to no. You should see a 'project_name' of 'messenger_sticker' that has a 'result' of 'false'. We just need to make this say 'true' instead. In Charles, go up to Tools and click on Rewrite. Click the Add button in the lower-right to create a new rewrite rule. First you'll need to specify the location, or URL, that you want Charles to match for this. Click Add below the top pane and in host, enter 'https://api.facebook.com/method/fql.multiquery'. Once you tab to the next field, Charles will parse out the URL how it needs to and you can click OK. Next we need to tell Charles the actual rule we want it to use, so click the Add button below the bottom pane. We'll want to set the type to Body (since this is where we want to change the data), uncheck the Request box and check the Response box. In the Match section, set the value to '{"project_name":"messenger_sticker","result":false}'. Down below, in the Replace section, set the value to '{"project_name":"messenger_sticker","result":true}' and leave the Replace All radio button selected. Select OK to add the rule and OK again to close the Rewrite Settings window.

Charles should be good to go now. Close the app and force close it from the background, then relaunch it, and you should see a request go out to https://api.facebook.com/method/fql.multiquery?sdk=ios&queries=%7B%22awholebunchofotherstuffgoeshere. In order to know if your rewrite rule worked, you can look in the Overview tab of the request and in the Notes section you'll see some "Rewrite Tool: body match" text if Charles was able to match and use your rewrite rule. To be extra sure, you can also view the response and see that it is indeed saying true now where it used to say false.

Obviously the downside to the proxy approach is that you have to be proxying your device for it to have the desired affect. Unfortunately this is the only way I've found to enable stickers since Facebook is checking this value server-side each time.

That is, until you're done testing or Facebook officially enables the new features on your account.

Nick Arnott

Security editor, breaker of things, and caffeine savant. QA at Double Encore. Writes on neglectedpotential.com about QA & security, and as @noir on Twitter about nothing in particular.

More Posts

 

8
loading...
39
loading...
86
loading...
0
loading...

← Previously

Facebook for iOS updated with news feed redesign, brings Chat Heads to limited number of users

Next up →

T-Mobile USA says iPhone 5 gave them one of their biggest launch weekends ever

There are 20 comments. Add yours.

asuperstarr says:

Not that important to me. I will have to pass.

xstex says:

Thanks for letting us all know. We always wonder what asuperstarr is going to do.

offdahglass says:

That wasn't even worth a reply. I feel the same was he does. It's not that serious to go through all those steps.

uncleho says:

I just tried it. I followed the instructions (used iExplorer), changed the key in Xcode under Project Gating. Force quit the app. Relaunched it, chat heads not working. When I redownloaded the PLIST, it shows the value changed back to NO.

Carlos Rincon Eckardt says:

Have the same issue too... it doesn't work!

iSRS says:

Easier way to enable the chat heads (that worked for me)

Delete the app from your device. Reinstall the app. Done.

Doesn't work for the stickers, though.

Batting1000 says:

I did this and got Stickers earlier. Can't seem to get Chat Heads. Tried the method in the post but the value just changes back to false. I'm also getting a weird design issue after I force close.

Picture here:http://forums.macrumors.com/showthread.php?t=1571484

Clyde Magee says:

I must of got lucky they both work after a restart.

Clyde Magee says:

It started working for me after I force closed Facebook and restarted my iPhone, one thing I'm noticing is after you read the chat it doesn't clear out of notifications, and it stacks all the chat heads on top of each other?

Clyde Magee says:

Noticed that you can completely delete a chat from within the app... Finally!

JaJaWa says:

Can a similar method to this be used to get the the new News Feed on my Mac?

gammills08 says:

I am using them and its kinda cool. I like being able to switch between messages super fast and keeping people that I chat with often open on my Facebook screen.

hglack19 says:

Chat heads so damn annoying

stephen007 says:

Awesome article, Nick! I love the technical details on how to get this working!

I've been getting weary of the constant articles posted here that are so basic. I know there are newbies and such that need these articles but at times it feels like a basic concept it taken and then split into 3-4 separate articles, posted over the course of several days. I usually just bite my tougue. Your article, Nick, was interesting and technical and gets my juices flowing in the way that jailbreaking used to do back in (?) 2008-9ish. Thanks.

AmaurieRaz says:

It's funny that all of my friends have chatheads on their account and I'm the only one that doesn't have it. Facebook fail

Carlos Rincon Eckardt says:

Epic fail! and this is now a social media joke! facebook announcing features and then taking months to roll them out! it's ridiculous!

metllicamilitia says:

I have chat heads, works great, I like it

Dark_Blu says:

Works in mine. Still unlikely to use it much on iPhone but will use it more on iPad.

rpol86 says:

I have stickers but no chat heads :/