Giter VIP home page Giter VIP logo

blog_code's People

Contributors

jstolpe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

blog_code's Issues

Blank page

Hello, thank you for you code.
I put your source code in my web server.
With good info client id , secret id ( facebook app) in defines.php.

But when i try to load the page /instagram_graph_api/obtaining_access_token.php
i got a blank page, do you know what i am doing wrong.

How to get shared posts data from instagram direct message

Thanks for the great series of posts which has helped me build my application.

Currently I am trying to get messages sent from someone else to my account and I am following the conversation endpoints.

When I retrieve data using the message endpoint, the text message gets retrieved correctly but if the user shared a post, i cannot access that. I am able to get the link to the media of the post (only the first media). My sample output looks like

{
    "id": "{MESSAGE-ID}",
    "created_time": "TIME",
    "from": {
        "username": "USER",
        "id": "ID"
    },
    "to": {
        "data": [
            {
                "username": "USER2",
                "id": "ID2"
            }
        ]
    },
    "message": "SOME-MESSAGE",
    "shares": {
        "data": [
            {
                "link": "https://lookaside.fbsbx.com/ig_messaging_cdn/?asset_id=18013607600097500&signature=AbytB04ZXXPYim34RYnSUHN4WBasyNLqUhApEUHmlXuBK1PxhQ3ZdtcNodg_bjc-y89DqpQscfWsf-TwPFN5g8h7dSFFhGtt2UxPaZroe8RKHzVG6F3hH-pUUSxu6u5SvPCxqR0_OCImDzAiIsyCZrvsOYxiIGHeVQk9tw28CQWIwgjyOw9-QWq3h50y68YHm1-WWYil7cRgkibVEQDRpUJZvlxwitY"
            }
        ],
        "paging": {
            "cursors": {
                "before": "MAZDZD",
                "after": "MAZDZD"
            },
            "next": "https://graph.facebook.com/v19.0/{MESSAGE-ID}&fields=id%2Clink&limit=25&after=MAZDZD"
        }
    }
}

My input url and params are

URL: 
https://graph.facebook.com/v19.0/MESSAGE-ID

Endpoint Params: 
{
    "access_token": "PAGE_ACCESS_TOKEN",
    "fields": "id,created_time,from,to,message,reactions,attachments,shares{id,link},is_unsupported,tags,story"
}

Do you have an idea if it is possible to get the public post id shared with my account in direct message instead of just getting the link?

Undefined index: paging

hello, i have watch several great video instsagram basic display api and your video is one of the best. i find this error Undefined index: paging in ... line 171 i believe. and it happen to be in the call api function. when i copy your code from github and run it in my host ( i use 000webhost ) i think it happen because the your $params has alot of different structure for example it have different structure in function getusermedia ( dont have paging ) and getpaging (only have paging ) but both of the function use call api function. thats why the paging is undefined. this is only my hypothesis so do you have any suggestion ?

what is the cause of these errors? Thanks

Highlighted Post
Media ID: MEDIA-ID
Raw Data


		Media Array

(
[error] => Array
(
[message] => Unsupported get request. Object with ID 'MEDIA-ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation
[type] => IGApiException
[code] => 100
[error_subcode] => 33
[fbtrace_id] => AkLl12hQO-eJrTGPABAL-o6
)

)
Children Array
(
[error] => Array
(
[message] => Unsupported get request. Object with ID 'MEDIA-ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation
[type] => IGApiException
[code] => 100
[error_subcode] => 33
[fbtrace_id] => AkPU-RpY47GZ1Z0CHJpz7PL
)

)


Users Media Page 1 (0)
Raw Data


Array
(
[error] => Array
(
[message] => Unsupported get request. Object with ID 'USER-ID' does not exist, cannot be loaded due to missing permissions, or does not support this operation
[type] => IGApiException
[code] => 100
[error_subcode] => 33
[fbtrace_id] => AY3EC3Dzf2U3VEcx_DFA5Ba
)

)

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.