FORUMS

What Do You Think About Fingerprint Scanners?

More and more phones are featuring fingerprint scanners, and with many promising … more

What’s Next for Samsung and Its Flagships?

If we were to say that the Galaxy S6 was a leap of faith made by Samsung, we … more

The Ultimate Showcase of dBrand Skins

In the search for ways to protect, accessorize, and personalize; a user has many options. One … more

Huawei’s Rapid Rise to Third Place in the Smartphone Race

Huawei has quickly grown to become one of the world’s biggest … more

[Q] How to remove Facebook suggested ads?

77 posts
Thanks Meter: 67
 
By Klyno, Member on 19th August 2014, 02:20 PM
Post Reply Subscribe to Thread Email Thread
Hi.
I just wanted to know how to remove all the suggested ads in the news feed of Facebook application. I tried to block some permission which could eventually be the cause of this or even use adblockers but nothing worked for Facebook. So if you have a solution it would be gladly appreciated.
Thank you
 
 
19th August 2014, 03:09 PM |#2  
olokos's Avatar
Recognized Contributor
Flag Warsaw
Thanks Meter: 1,957
 
Donate to Me
More
That is pretty interesting I have to say. My first idea "impossible as there are no elements that would be easy to distinguish from the other items of the app", but I might be very wrong.
19th August 2014, 03:23 PM |#3  
Klyno's Avatar
OP Member
Thanks Meter: 67
 
More
Quote:
Originally Posted by olokos

That is pretty interesting I have to say. My first idea "impossible as there are no elements that would be easy to distinguish from the other items of the app", but I might be very wrong.

Hmm I see but still it must be a line of code which implements ads as in every free app with ads but I must admit it that as you said, ads in Facebook are in the core of the app and not just a third-party layer. I mean most of ads in others apps are "Google ads" but it's different for Facebook. Maybe decompiling the apk and search for the part with suggested ads could help ^^
19th August 2014, 06:27 PM |#4  
Senior Member
Thanks Meter: 37
 
More
Isn't the suggestions just pushed as a news feed item?
19th August 2014, 06:40 PM |#5  
Klyno's Avatar
OP Member
Thanks Meter: 67
 
More
Quote:
Originally Posted by shinji257

Isn't the suggestions just pushed as a news feed item?

If it is so then I have to find the line where the item is implemented and set it to "false" or something like that no? I kind of suck in coding but I'll give it a try one day.
20th August 2014, 02:48 PM |#6  
olokos's Avatar
Recognized Contributor
Flag Warsaw
Thanks Meter: 1,957
 
Donate to Me
More
I was almost sure that it can't be as easy as it sounds and it actually isn't. You were taking about bools. Those are either true or false. Unfortunately I was right...

I can upload decompiled Facebook apk if you want to dig it further.
The Following User Says Thank You to olokos For This Useful Post: [ View ]
20th August 2014, 05:33 PM |#7  
Klyno's Avatar
OP Member
Thanks Meter: 67
 
More
Quote:
Originally Posted by olokos

I was almost sure that it can't be as easy as it sounds and it actually isn't. You were taking about bools. Those are either true or false. Unfortunately I was right...

I can upload decompiled Facebook apk if you want to dig it further.

I'll do it with apk tool or apk studio and see what I can change and if it's possible to get some results. I was thinking of making a test on for example deactivate news from a specific user (this could be done from options too) from the apk directly and maybe with a little chance the suggested ads work the same way. If it's the case it's kind of easy to block them I guess.

PS. Did you find the bools.xml in the fb apk? Because I can't find it ^^
Last edited by Klyno; 20th August 2014 at 05:35 PM.
20th August 2014, 06:04 PM |#8  
olokos's Avatar
Recognized Contributor
Flag Warsaw
Thanks Meter: 1,957
 
Donate to Me
More
Yup. Facebook apk indeed. Disassembled just before my previous post. Nothing helpful in that xml anyway. It's a good idea although I think it won't be that easy.
Good luck though. Shall you need any help, just let me know and I'll do my best to help you. Post anything you find here.
The Following User Says Thank You to olokos For This Useful Post: [ View ]
20th August 2014, 06:40 PM |#9  
Klyno's Avatar
OP Member
Thanks Meter: 67
 
More
Quote:
Originally Posted by olokos

Yup. Facebook apk indeed. Disassembled just before my previous post. Nothing helpful in that xml anyway. It's a good idea although I think it won't be that easy.
Good luck though. Shall you need any help, just let me know and I'll do my best to help you. Post anything you find here.

Well I think I was searching it in the wrong place, I went in /data/app then directly in the apk nvm ^^
Well I'll start this tomorrow and see what I can do. I have to say I'm not a genius in coding, only worked in python but it's more logic than anything else. If something looks weird I have Google
20th August 2014, 08:50 PM |#10  
olokos's Avatar
Recognized Contributor
Flag Warsaw
Thanks Meter: 1,957
 
Donate to Me
More
Try starting from how to decompile an apk. I also want to mention that smali which you'll need to know to dig REALLY DEEP is more like assembler not like python :P

---------- Post added at 09:50 PM ---------- Previous post was at 09:50 PM ----------

Byte code <- smali <- Java
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes