Giter VIP home page Giter VIP logo

laravel-linkedin-share's People

Contributors

alanbrande avatar niklaz avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

laravel-linkedin-share's Issues

Not enough Permission to share

Client error: POST https://api.linkedin.com/v2/ugcPosts resulted in a 403 Forbidden response: {"serviceErrorCode":100,"message":"Not enough permissions to access: POST /ugcPosts","status":403}

Image sharing issue

public function callback(Request $request){
$code= $request->get('code');
$text="Murali Sending url for link";
$image = $_SERVER['DOCUMENT_ROOT'].'/47124254_1973608329422637_4904926392325505024_n.jpg';
$accss_token=LinkedinShare::getAccessToken($code);
LinkedinShare::shareImage($code,$image,$text,$accss_token);
return 'done';
}

Above code with artical sharing working well by LinkedinShare::shareArticle($code, $url, $text,$accss_token); (And notifications appeared in linked in)
Wen coming to image sharing code execution going well but image sharing notification not getting in linked in.
Please help me

$code

What Should be given in $code?. I'am new to laravel please help me out.

Your requirements could not be resolved to an installable set of packages

I tried adding this package to my project and it gave me the error below

Problem 1
- Root composer.json requires lightit/linkedin-share dev-master -> satisfiable by lightit/linkedin-share[dev-master].
- lightit/linkedin-share dev-master requires guzzlehttp/guzzle ^6.3 -> found guzzlehttp/guzzle[6.3.0, ..., 6.5.x-dev] but it conflicts with your root composer.json require (^7.0.1).

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Please I will need some help

can't install on laravel 5.5

run composer installation procedure and out this error

└─ $ ▶  composer require lightit/linkedin-share

                                                                                                                                           
  [InvalidArgumentException]                                                                                                               
  Could not find a version of package lightit/linkedin-share matching your minimum-stability (stable). Require it with an explicit versio  
  n constraint allowing its desired stability. 

using access_token instead of code for sharing

I apologize for being boring xD
Just another suggestion.
For sharing methods, there should be used access_token instead of short lived code.
Code retrieved from authorization callback url, lives for LinkedIn only 20 seconds, giving it impossible to use it to retrieve access_token on each call.
It would throw 400 error.

additional info in docs

Hi,

great quick solution for v2!

I guess there should be added in docs to add provider in list of providers in app.php configuration as well as alias for facade,

'providers' => [ ... 
Lightit\LinkedinShare\LinkedinShareServiceProvider::class,
],
'aliases'=> [
'LinkedinShare'  => Lightit\LinkedinShare\Facades\LinkedinShare::class,
]

And to create linkedinshare configuration file with data for redirect_uri, client_id and client_secret:

return [
	'redirect_uri' => '',
	'client_id' => '',
	'client_secret' =>'',
];

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.