How I can pull more instagram recoreds using the Load more button
Creative-developers opened this issue · comments
Hello,
There is a limit of only showing the records for the fisrt time when the page loads,
How I can pull more records after the limit when the user clicks on "load More" button?
In no way
well i was using graph method for doing that now because of cors it is
sending error
…On Tue, 2 Mar 2021, 11:44 pm mahotilo, ***@***.***> wrote:
In no way
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHK7KVZMAYT6DOATKOGOHGTTBU52ZANCNFSM4YPTY4IA>
.
well i was using graph method for doing that
Was it with this script? Sorry if I misunderstood you.
no not from this i was using graph method
…On Wed, 3 Mar 2021, 12:02 am mahotilo, ***@***.***> wrote:
well i was using graph method for doing that
Was it with this script? Sorry if I misunderstood you.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHK7KVY32BNINZQT2PUS6WDTBU75RANCNFSM4YPTY4IA>
.
So, what is the question about THIS script? If you are requesting a new feature, please, change the issue title.
function fetchInstagramGraphQl(e) {
console.log(e.attributes[3].nodeValue);
var queryHash = '7c8a1055f69ff97dc201e752cf6f0093',
variables = encodeURIComponent(
JSON.stringify({
id : e.attributes[5].nodeValue,
first : 12,
after : e.attributes[3].nodeValue
})
),
url = "https://images" + ~~(Math.random() * 3333) + "-
focus-opensocial.googleusercontent.com/gadgets/proxy?container=none&url=https://www.instagram.com/graphql/query/?query_hash="
+ queryHash + "&variables=" + variables;
$.ajax({
url: url,
type: "GET",
success : function(response) {
if(response.status == 'ok') {
var timeline =
response.data.user.edge_owner_to_timeline_media;
if(timeline.page_info.has_next_page == false) {
$('#load-more-images-button').attr('disabled','disabled');
}
$('#load-more-images-button').attr('data-ig-end-cursor',
timeline.page_info.end_cursor);
$.each(timeline.edges, function(i, media) {
var node = media.node;
mediaTemplate({
media_id : node.shortcode,
media_url : '' + node.thumbnail_src + ''
});
});
}
},
error : function() {
},
});
}
This is the function which i am using for getting more posts but due to
cors i added that proxy but that proxy is still not working
so i just need to know if there is any fix forr this
…On Wed, Mar 3, 2021 at 12:11 AM mahotilo ***@***.***> wrote:
So, what is the question about THIS script? If you are requesting a new
feature, please, change the issue title.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHK7KV55KQT52R5SH5OQIN3TBVA5XANCNFSM4YPTY4IA>
.