Giter VIP home page Giter VIP logo

dsgnwrks-instagram-importer's People

Contributors

garyjones avatar jtsternberg avatar nfriedly 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dsgnwrks-instagram-importer's Issues

A Simple Change to Prevent "Lost" Imports

Since my autoimporting isn't working as per issue 36, I keep finding myself having to press the "Import" button regularly.

Sometimes a few insta posts can pile up. Instagram-Importer seems to import them from newest to oldest. If I accidentally navigate away from the page, the older posts get skipped. Then when I try to import again, it won't find the older posts.

So some questions:

  1. Is there a way to pick up these "lost" older insta-posts that Instagram-Importer will no longer look for?

  2. Can you change Instagram-Importer so it imports from oldest to newest, so there is no chance of losing any?

Thanks for your great work.

debug, crontab import

Hi
I'm using at goedemorgen365.nl the plugin for a very long time now. Today I have upgraded to Version: 1.3.3 and I think something is not working with the crontab anymore
the plugin is not importing automatically anymore (manually it does) but when it manually is imported than there is no featured image on the post

The setup is simple
I have 2 instagram users: A1 and B1 and we check on a few tags to import the image
It must check every hour to see if there is a new image and set the image as featured post.

I would like to see where it is failing (if so) and what is causing it, cause waiting 1 hour to see it is not imported is a little troublesome ..

btw I manually exectuted
http://domain.nl/wp-admin/tools.php?page=crontrol_admin_manage_page&crontrol_message=1&crontrol_name=dsgnwrks_instagram_cron
But no debug here cause it is not updating anything yet.

What is the best way to 'fix' this?

update:
debug plugin is not working with 1.3.3.

[Mon Oct 26 13:59:44 2015] [warn] [client ip.address] mod_fcgid: stderr: PHP Fatal error: Call to undefined method DsgnWrksInstagramDebug::filter() in /var/www/vhosts/domain.nl/httpdocs/wp-content/plugins/dsgnwrks-instagram-importer-debug/DsgnWrksInstagramDebug.class.php on line 51, referer: http://domain.nl/wp-admin/tools.php?page=dsgnwrks-instagram-importer-settings

Need more Details on Video Shortcodes and **codes

According to the updated description:

The new shortcode, [dsgnwrks_instagram_embed src="INSTAGRAM_MEDIA_URL"], displays your imported media as an Instagram embed (works great for video!) and finally, you can now use the tags, insta-embed-image, and insta-embed-video, in the Post Content template to save the dsgnwrks_instagram_embed shortcode to the post.

That's great news. And I can see that my instagram videos are now in my media library in two different sizes. However, when Instagram Importer imports these posts, it only features the thumbnail photo. with a link to the instagram post.

If one has an instagram account that sometimes posts photos and other times posts videos, how do you make one user profile handle both gracefully?

My current user profile is similar to the default:

<p><a href="**insta-link**" target="_instagram">**insta-image**</a></p>
<p>**insta-text**[if-insta-location] -- at **insta-location**[/if-insta-location]
<a href="**insta-link**" target="_instagram">Via Instagram</a></p>

I would like to import both images and video, displaying whichever is appropriate, an imported image if it is an image, and wordpress embedded video if it is a video. How do I do that?

Authentication Error

When I try to "Create a User" and "Secure Authentication with Instagram" I get the error message "There was an authorization error. Try again?"

Last week sometime I had tried setting up the importer on a fresh WP install and didn't have any problem importing about 85 past posts. Now on my live site, I'm unable to get past authentication.

I've tried going into Instagram and deauthorizing DsgnWrks Instagram Importer in case that was the issue, but it doesn't seem to be the cause.

The plugin seems to authorize properly and redirects to the set up page for the plugin, but throws the error. (Authenticated apps within Instagram indicates that the plugin was properly authorized.) I've also tried using a different Instagram account, but that didn't work either.

Thoughts?

Include videos by default

I think that this plugin should include the video in the post by default when it imports from instagram. I know https://gist.github.com/jtsternberg/b7c3b5371c6f639693b8f086859ad129 exists, but I feel like that shouldn't be necessary, and it doesn't give any straightforward way to stick the video into e.g. the middle of the post.

I think we should add some new tags like **insta-video** and maybe a **insta-video-or-image** that would insert one or the other but not both.

Additionally it might make sense to have content-type conditionals such as [if-type-image] and [if-type-video] (and, eventually, an [if-type-carousel] - see #43).

Or, alternatively, different templates for different types.

can i ONLY show square image in wp-posts? (even if fullsize image is not square)

can i ONLY show square image in wp-posts (even if fullsize image is not square)?

as i am using the imported images for a masonry grid it would be great if i could only use square images.

is there any way to tell the importer that i only want square image-sizes to use as insta-image ?
(i have seen that the importer allready generates a 360x360px thumb after import even if the instagram-image was not square)

cURL error

I didn´t check my wp install for some time (month?), and now, on import, i get the following error:

ERROR:
cURL error 28: Operation timed out after 5001 milliseconds with 1160 out of 1261 bytes received 

Any help would be greatly appreciated.

Import working kind of...

I have setup the plugin to import instgram images by a tag. The import happens and thepost gets created but the image is missing. I installed it today so latest version.
And I kinda dont wanna delete all the posts...

"There was an authorization error" when trying to Authenticate User

I am trying to setup the DsgnWrks Instagram Importer (v 1.4.0) on a Wordpress (v 4.7 site). However when I try to authorise the account, I get the message:

'There was an authorisation error. Try again?'

If I try again, I get the same message.

On my Instagram Account, I have checked, and it does list DsgnWrks Instagram Importer as authorised.

There's no other debugging information I can find (I have installed the debugger).

Error creating posts

worked perfect before 20June2017, vers.1.4.1 (seems some Instagrame update been made).

from that date I constantly get Error message while importing Instagram posts (please see attached)
untitled picture

Issue importing all photos of a post

I have an strange problem. With two account (personal) it correctly imports all photo of a post. But with my another account (business) it imports just import first photo multiple times.

Maybe the type of account is the problem here?

Save Instagram photo as post's feature image

When selecting the checkbox and save the settings the selectbox is empty again
2 users, 2x the keeps the same.
same issue applies for Auto Import feature photos

fwiw:
removed 1.3.3. and re-installed 1.2.9 (tells me 1.2.8 in wp)
the select boxes can be set correctly and the crontab functioN (#21) is working as well
(will update to every version to see if it works)

Image size+quality (visible artifacts)

Hi, thanks for the plugin!

Not sure this is related to the plugin itself, but the image quality (of the "original" image in WP*) is visibly worse than the online version on Instagram. Also, it does not download the original size (1080x1080), i have only 640x640-version in my library.

11-04-2018-00 44 29

Any idea why/how to solve this?

Thanks

*just to be clear: i am looking at the downloaded original image in full resolution, not the thumbnails.

Emojis in $user_data->bio breaks set_transient in get_cached_user_data

If the bio text of a instagram profile contains emojis it breaks the saving of the "dw_instauser_" transient in get_cached_user_data function. This leads to an infinite loop causing the importer to exceeded the maximum number of requests per hour for the Instagram api. We have had this problem on a lot if different environments and servers.

For now I just did the following in our copy of the plugin:

// Bio may have emojis etc that breaks the transient 
$user_data->bio = '';
set_transient( 'dw_instauser_'. $opts['id'], $user_data, WEEK_IN_SECONDS );

Nothing gets imported

I've tried various settings but I can't import anything. Whatever date I put in there it tells me there's nothing to import. Only exception was when I had not yet activated my settings and cron apparently already imported the three latest. However, I can't reproduce that. I suppose I don't have a small Instagram account, but I know plenty who have bigger ;)

I have activated and turned on the debug plugin but I'm little lost on what it should do. How can I provide you with better info?

Emojis in instagram text break things

Awesome plugin! The only issue I encountered was with emojis in the insta-text. This would break and wordpress would throw

PHP Warning: htmlspecialchars(): Invalid multibyte sequence in argument

I got around this by running a remove emoji function before saving to the db

function removeEmoji($text) {

    $clean_text = "";

    // Match Emoticons
    $regexEmoticons = '/[\x{1F600}-\x{1F64F}]/u';
    $clean_text = preg_replace($regexEmoticons, '', $text);

    // Match Miscellaneous Symbols and Pictographs
    $regexSymbols = '/[\x{1F300}-\x{1F5FF}]/u';
    $clean_text = preg_replace($regexSymbols, '', $clean_text);

    // Match Transport And Map Symbols
    $regexTransport = '/[\x{1F680}-\x{1F6FF}]/u';
    $clean_text = preg_replace($regexTransport, '', $clean_text);

    return $clean_text;
}

I would definitely recommend implementing into the plugin!

Add support for video

Today instagram added video support, it would be awesome if this plugin could cater for this

Auto import not auto importing

The site: peoplesriverhistory.us

I have no problem importing when I click the Import button, but my auto import is not importing automatically. Once upon a time, it did. I have tried deleting my user and adding another, and still it does not work.

Perhaps I am missing something?

User configuration

Plugin options

PHP notice for invalid argument

Warning: Invalid argument supplied for foreach() in .../wp-content/plugins/dsgnwrks-instagram-importer/dsgnwrks-instagram-importer.php on line 87

Carousel posts download the wrong image

The hack you're using in download_media_url() will always use the URL of the first image in the carousel instead of using the correct item from the graphql array in the json response, so it just downloads the thumbnail / cover image multiple times instead of each image in the carousel

Instructions for running tests locally

Hey, I noticed the dockerunit.json file, which I'm guessing is for local testing, but I feel like I'm not sufficiently in-the-loop with php to know what the current standards are.

Would you be willing to write up some instructions for how to test this locally?

Even just a couple of commands + links to external documentation would be helpful.

Adding a second instagram user, things get wonky

The modal/iframe pops up and has an error (gray screen with the frownyfacebrokenimage thing). Then screen redirects to the instagram auth screen for the full browser window instead of in the modal. Authorizing then works fine

This only happened to me on the second user, not the first one.

Importer "chokes" on Turkey emoji

I had recently posted the following to instagram: https://www.instagram.com/p/BM5dwNtDPnU/

When the importer came to suck in the data and import it into my WordPress install it resulted in the following error:

error

I tried uninstalling, reinstalling, and re-authenticating to see if that was the problem with no luck. I was about to give up the whole affair in utter despair (because DsgnWrks Instagram Importer is my absolutely favorite plugin in of all time and because I didn't want to use Instagram anymore if I couldn't "own" my own photos.)

In desperation, I manually "imported" the post/photo and between that and surprisingly seeing a newer post being imported properly this morning, I'm able to take a reasonable guess as to what the problem is! I also tested on another instagram account and found the same results which "confirms" the issue.

Apparently Instagram posts with the Turkey Emoji 🦃 (I'm using an Android phone ) don't work well with either the Importer or even WordPress itself. I suspect that WordPress is viewing the translated code for the Turkey emoji (see also: http://www.iemoji.com/view/emoji/1861/animals-nature/turkey) as malicious code and not allowing it to be imported into the database. When trying to use the turkey emoji in a Title field (and several others) to post the photo manually, WordPress will post properly, but it scrubs the emoji code out of the post completely.

Does anyone have any experience in properly sanitizing emoji code to prevent this type of error in the future? Has anyone noticed other emoji that cause problems? I somewhat often use them and haven't seen any issues with other emoji like this.

The quickest fix is potentially to scrub out any Turkey emoji codes in future posts prior to attempting import--particularly as WordPress doesn't seem to be able to handle it properly either.

Feature: Reimport photos

In the case where you navigated away from the page and the query stopped before it could import all your pics, add a reimport button to force a reimport of pics.

Should include handling for posts that would match existing posts to prevent duplicates.

Cannot redeclare class

I used this plugin previously, love it. It has stopped working for me, tested it on 5 sites (3 were fresh installs). The error I get on attempted activation:
Fatal error: Cannot redeclare class DsgnWrksInstagram in /var/www/clients/client0/web3/web/wp-content/plugins/DsgnWrks-Instagram-Importer-master/dsgnwrks-instagram-importer.php on line 12

Any support is greatly appreciated.

Import my all posts?

My profile has 450 posts. Is it possible to import all at once or I should use "from date option" to import in a couple of batches?

Conditional shortcodes

[if-location-exists]show this content and the location: insta-location[/if-location-exists]

Import carousel posts from Instagram

Right now this importer skips over carousel posts entirely. #42 partially fixes this by making it not skip it and at least import the cover photo and link.

I'm working on a followup PR that handles that + imports all of the media, but I'm not sure what the best way to display the media is.

Creating a WP gallery makes sense if it's all photos, but they don't seem to support videos, so they would need to go somewhere. The built-in video metadata only allows for a single video, so it wouldn't capture everything if the carousel has more than one video.

Any suggestions?

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.