Giter Site home page Giter Site logo

Comments (4)

paulfp avatar paulfp commented on June 4, 2024 1

Ah yes you're right, it's a shame! I'm planning to pick this project up again later this year so will try to find a new solution. I'm not confident about the Facebook approach though because they have to approve API access for the app (and they refused for this one previously) just to view a follower count for a page, which seems crazy to me as it's hardly private info.

from social-media-counter.

GFBsoul avatar GFBsoul commented on June 4, 2024

I'm glad you are picking the project up again!
I might not be able to code the thing, but I can always help out to try and find a good source for the data.
I'm also in the process of getting something approved through Facebook developers. But it seems like way too much work for a project like. You would like to get this thing up and running within a day.

from social-media-counter.

fenau88 avatar fenau88 commented on June 4, 2024

i saw that the code is under "userInteractionCount" in the sourcecode of the page
i hope this helps

from social-media-counter.

fenau88 avatar fenau88 commented on June 4, 2024

We found a solution, change this with the complett instagram part, not the best solution but it works

// Get Instagram followers
if(!is_null($instagramUsername)) {
$url = 'https://www.instagram.com/' . $instagramUsername;
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
$output = curl_exec($ch);

preg_match('/userInteractionCount\"\:\"(.*?)\"/', $output, $followerCount);
$instagramFollowers=$followerCount[1];

}

from social-media-counter.

Related Issues (2)

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.