GithubHelp home page GithubHelp logo

Comments (4)

iparamonau avatar iparamonau commented on August 25, 2024

Is there a test URL for this?

from iframely.

shadysamir avatar shadysamir commented on August 25, 2024

This url

https://www.facebook.com/lamlamgouda/posts/pfbid0qsQbo2vzuKgBogPe3CyaRT5FvyDze7Cpn7z6mWAW7RiZDCvpGuBhjFJY2J6kw64vl

Generates this log:

|iframely  | -- [22-06-23 22:43:44]:14623 127.0.0.1 - Loading /oembed for https://www.facebook.com/lamlamgouda/posts/pfbid0qsQbo2vzuKgBogPe3CyaRT5FvyDze7Cpn7z6mWAW7RiZDCvpGuBhjFJY2J6kw64vl
0|iframely  | -- [22-06-23 22:43:44]:14623    -- plugin redirect (by "htmlparser") https://www.facebook.com/login/?next=https%3A%2F%2Fwww.facebook.com%2Flamlamgouda%2Fposts%2Fpfbid0qsQbo2vzuKgBogPe3CyaRT5FvyDze7Cpn7z6mWAW7RiZDCvpGuBhjFJY2J6kw64vl

But it passes in url debugger

from iframely.

iparamonau avatar iparamonau commented on August 25, 2024

Indeed, our public code expects numeric post ID. If we allow pfbid...., then Facebook gives us this:

-- [22-06-23 23:42:04]:30716 Facebook oembed api - error getting oembed for https://www.facebook.com/lamlamgouda/posts/pfbid0qsQbo2vzuKgBogPe3CyaRT5FvyDze7Cpn7z6mWAW7RiZDCvpGuBhjFJY2J6kw64vl {"message":"(#100) Invalid parameter","type":"OAuthException","code":100,"fbtrace_id":"AWa2ng9Bzj0TN_h3vzGfX0r"} 

In other words, Facebook does not support such IDs either.

Now, our cloud handles that URLs by doing an internal processing redirect to
https://www.facebook.com/lamlamgouda/posts/10159814106615664

Our debugger gets the canonical URL in the <meta> section of your original URL. But unfortunately it seems your server won't find that canonical anyway because it gets treated to a login page by Facebook. Our debugging server does get proper meta, likely because of the reverse DNS lookup verification.

So it appears that you won't be able to support those new URLs at the moment. Let's hope Facebook adds the support to their Graph API soon.

from iframely.

shadysamir avatar shadysamir commented on August 25, 2024

The message {"message":"(#100) Invalid parameter"} response is what I get even with Facebook's own API testing tool. It's so frustrating. Thanks for the response. I think I need to find a solution with Facebook.

from iframely.

Related Issues (20)

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.