Coder Social home page Coder Social logo

Comments (24)

manoharprabhu avatar manoharprabhu commented on June 30, 2024 1

I tried disabling all other extension and running in incognito mode. Didn't help.
Am still looking into why my DOM structure is very different.

Till then I am using the unpacked extension with hardcoded pic link, username and profile link and it is working great.

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

Thank you submitting this!
What language in Facebook are you using?

from data-selfie.

manoharprabhu avatar manoharprabhu commented on June 30, 2024

English (US)

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

Ok, that is weird. Would you know why your Facebook is different than most of other people's?
I don't think I can really replicate this problem, right now.
Did you try making the selector change on your end and run an unpackaged extension?

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

Ok. Good that there is a way for you to at least use it!

Please let me know when you find the reason why your dom is different! I think there are a few people who also have the same problem. But again, I don't know yet I could test that.

from data-selfie.

blackout314 avatar blackout314 commented on June 30, 2024

Same problem again, locale it_IT

from data-selfie.

blackout314 avatar blackout314 commented on June 30, 2024
<div class="_4-u2 mbm _5jmm _5pat _5v3q _4-u8" data-fte="1" data-ftr="1" id="mall_post_10155001356614522:6:0" aria-labelledby="js_jm js_jn js_jo js_jp" data-insertion-position="1">

<div class="_3ccb" data-gt

content_looked.js row 183
var posts = window.global.feed.find("div._4-u2.mbm._5v3q._4-u8").children($("div._3ccb._4-u8"));

from data-selfie.

blackout314 avatar blackout314 commented on June 30, 2024

#7
i've fixed it

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

@blackout314 Thank you for your comments, can you further explain what you mean?
Are you addressing 2 different problems here?

I think @manoharprabhu's problem was that it would not track in the news feed. That happened to you, too?
And then your pull request #7 is for supporting group and FB page pages. Those I did not include on purpose, because I haven't tested if I can be sure likes and comments can also be tracked on those - so to be more clear in usage, tracking should only work in the news feed and on no other page. Does that make sense?

from data-selfie.

alarai avatar alarai commented on June 30, 2024

Hello @228miles

Just wanted to tell I'm in the same case as @manoharprabhu, I've just discovered the extension and was curious about it and it does not do any tracking after quite some time, there is no circle with number on the bottom left, and the extension information page just shows nothing.

I've also the same fb2k_pagelet_bluebar and no pagelet_bluebar

On my side I'm using facebook in french. I'll try to see if I find how to use the unpacked extension.

from data-selfie.

blackout314 avatar blackout314 commented on June 30, 2024

@228miles i've fixed the problem in PR, if you merge or try...

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

@alarai Thank you for your comment? Yes, please test if you can. I think if more people report the id #fb2k_pagelet_bluebar that I can just add an OR statement, but if there even more ids out there, it gets complicated.
Do you also have the id #stream_pagelet?

and thanks @blackout314 I have seen the PR, I think right now it's too fragile to also support groups and pages. But I investigate if just using #stream_pagelet would be sufficient. Also wondering if the user name and profile picture gets captured, too.

from data-selfie.

alarai avatar alarai commented on June 30, 2024

Hello @228miles

I've tried to make it from source but it does not really seem to work more I've made a search in the src js and replaced #pagelet_bluebar by #fb2k_pagelet_bluebar. Then I installed the application but it seemed not too work either. Though that might have been me too because if I have the icon for Data Selfie in chrome, I cannot view the options or anything when installing manually.

I can confirm that I have a div with the id stream_pagelet

from data-selfie.

japborst avatar japborst commented on June 30, 2024

I have a #pagelet_bluebar in en_UK, but no tracking either... Not really sure how I can test what goes wrong

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

@alarai did you follow all the instruction in the readme? So After you made the changes, you made a build. What do you mean by "I have the icon for Data Selfie in chrome, I cannot view the options or anything when installing manually"? Also I would recommend disabling the other Data Selfie extension from the Chrome Webstore, if you haven't.

@japborst I assume you know a little bit of code? The readme explains how to run the extension after you made changes. The changes should be made in the src folder. So in the specific case src/js/content.js all the way at the bottom, I am checking for #pagelet_bluebar a[data-testid='blue_bar_profile_link']. If that condition is true it should "Tracking on this page" in the console of your Facebook tab.

from data-selfie.

alarai avatar alarai commented on June 30, 2024

@228miles yeah I had been to quick trying to load directly the src in extension sorry. So I did try again, downloaded node.js to get the latest version and download every requirements to make it work. So finally I got a built version. But it's still not working.

while I can make it work just a bit with #fb2k_pagelet_bluebar but then there is no real tracking the #fb2k_pagelet_bluebar a[data-testid='blue_bar_profile_link'] remains false

So i've searched quite more and found that my profile link is the following code :
<a accesskey="2" class="_5yf _4qx2" data-gt="{"chrome_nav_item":"timeline_chrome"}" href="https://www.facebook.com/myname">

Meaning there is no blue_bar_profile_link either.

So I've used chrome and made an ugly version with #u_0_6 > div > div > div._2btk > div > div._9t5._398f > div._4qx3 > div > a and it works, but it is really ugly.

If there is anything that could be provided to help you do not hesitate to let me know, in the meanwhile I'll start with this :)

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

@alarai ok sounds good. With an id like #u_0_6 I feel a little suspicious that it won't work all the time. But keep me updated, please. If it works well, maybe I will add that as an if statement (in case #pagelet_bluebar is not present).

from data-selfie.

alarai avatar alarai commented on June 30, 2024

@228miles I'll let you know no problem. Actyually I did not really searched a lot just got the google inspector Selector tool to make it fast and try it. If I find something better I will let you know. I'll have to look after this one too I think #pagelet_bluebar a[title='Profile'] as it probably don't work either.

from data-selfie.

alarai avatar alarai commented on June 30, 2024

Hello @228miles

Just to keep you informed, right now I'm still using the code I've talked about the last time, and so far so good. The extension works like a charm. Only thing is I've not found any replacement for the #pagelet_bluebar a[title='Profile'] but its difficult because I don't have a page that actually have this tag as a refrence so I could see what it is and find the equivalent on mine.

from data-selfie.

osopolar avatar osopolar commented on June 30, 2024

In my case I have #pagelet_bluebar, but not a[data-testid='blue_bar_profile_link']. The profile link is:

<div class="_1k67 _4q39" data-click="profile_icon">
  <a class="_2s25" accesskey="2" data-gt="{&quot;chrome_nav_item&quot;:&quot;timeline_chrome&quot;}" href="https://www.facebook.com/my-profile-name" title="Profil">
    ...
  </a>
</div>

Language: German.

Edit:

Changing langauge to English didn't change anything, maybe it isn't about language but the location (in my case Argentina). Would the selector #pagelet_bluebar div[data-click='profile_icon'] a be helpful`?

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

Do people have an opinion/experience on this current selector that I am using #pagelet_bluebar a._2s25._606w?

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

For anybody who comes here to find a fix for why Data Selfie doesn't seem to track please consider contributing by sending a screenshot of your code (of course black out any information you don't want to share). I have uploaded a video where I show how to get the view of it here: https://vimeo.com/234004265

You can post it here (preferred) or send me an email at [email protected] with the subject line of "[blue bar]".

Hopefully there will be enough submissions to support #pagelet_bluebar and fb2k_pagelet_bluebar and also find out how to select the name/profile icon to verify that a user is logged in which then triggers the start of tracking.

P.S. quite some people also reported that just waited a few days and then it worked all of the sudden - I don't have any explanation for that, but just wanted to share this info.

from data-selfie.

DarioCorno avatar DarioCorno commented on June 30, 2024

Mine shows #pagelet_bluebar but the counter sometimes (actually a lot) fails to start when I scroll. The console says "no newsfeed posts in view".

from data-selfie.

01fade avatar 01fade commented on June 30, 2024

@DarioCorno So, you are saying the counter works when you stop scrolling though? (if you then that's how it supposed to work. I don't want to count seconds on posts that you basically just scroll by, but once you stop because you are looking at something it should count)

from data-selfie.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.