LinkedIn Permissions / API : Display last article of an organization - php

(Really sorry for my English, it's not my mother language)
We must display for a client, the last article published on their Linkedin page.
He gave me access to his account, and I was able to create an application linked to his page ("verified" link).
In the "Auth" tab of the application, I was able to recover "Client ID" and "Client Secret".
Now I need to authenticate with OAuth 2.0, but I don't understand what I need to do.
Should I go through a "3-legged OAuth" or a "2-legged OAuth"?
I have the impression that the second option is the best, because, if I understood correctly, it does not require manual authentication every X days.
Maybe I'm wrong?
I also read that I could go through the "Product" tab of the application and add the "Marketing Developer Platform". But is this really where I should orient myself?
As a reminder, the goal is, on an internet site (intranet to be exact), to put together the last article posted on the client's LinkedIn page.
Thank you in advance for your help.

Yes, you need the marketing development platform access to do this add marketing development platform in your product list. But it is not simple as you think you have to fill the application after that you have to submit that for a review then you will know your result

Related

Auto-Publication with Facebook API

I have a client who has recently raised a problem of self publishing articles facebook. The client has created his application that seems correctly configured but the publication does not appear on his page. The message sent back by the facebook API is the following: (# 100) Parameters of the URL have the ability to specify the picture, name, thumbnail or description.
The Oauth connection is running correctly, the problem is with the publication.
To perform tests on my side, I became an administrator on its facebook application and then filled in my own page created for a long time already. No problem to publish on my personal page with the API facebook. I created a second page always with the same account then changed the url of the page on which to publish and I reproduce the problem. There seems to be a problem checking the user's rights on the page.
While searching on Google, I could find that is a security implemented on version 2.11 of the API with the domains but I did not find any way to solve my problem. Does anyone have a solution? Why I can publish on old pages but not on new pages created from the same account.
Thank you in advance for your assistance and sorry for bad english :)

How to create a facebook app without much knowledge of PHP/MYSQL?

I'm trying to SUGGEST, or CREATE an app, and I don't have any knowledge of facebook app creation... I've looked up on tutorials, but facebook's API might change or has changed by the date of those tutorials...
So I thought I'll ask on here, after searching for a facebook developer's support, I was redirected to here.
My question: What is the best way to create a basic app, as per my requirements (below)..?
My Suggestion/Requirements: I wrote this tutorial on superuser, which lets you display your current playing track as an updated div on your html based website. I'm trying to create a facebook app that posts these track info updates to the right side of the facebook home panel (above the chat column). Like Spotify! Or SoundCloud...
My Problem: I don't know where to start? I don't have much knowledge of scripting and according to me, it should be quite simple in PHP/MYSQL/Javascript/ ... but don't know how facebook would handle the html file from where the <div> data could be collected. I think jquery would solve that, but this can also be done via PHP/MYSQL.
It should be simple, so I'm also suggesting this as an idea for anyone willing to create this app on facebook? And if you create it, please do keep it open source project or a tutorial for it, so that if at any time you close the app, it can still be replicated. I cannot create it but am willing to, but don't know how to...
I'm asking this here because facebook doesn't appear to have a forum based posts for this apart from the developers group. I've joined the facebook developers group, but haven't yet been allowed to post anything, as the join request is pending.
That's mostly all. Thanks for any help.
Start with registering your application on Facebook .It will give you some token and keys.
Now you can follow any tutorial online to create application on fb.

How to remove 'via app' when posting on facebook page feed

When posting to the page wall (feed) through my application, under the post contents facebook adds '20 minutes ago *via my_app*'. This is a problem for my company, since they don't want the fans knowing the posting is done through an application, thus losing the personal touch.
Is there any way to lose the '*via my_ap*p' part of the post? These are some of the things I have tried:
I have given every possible permission on the page admin user, including 'manage_pages'
Have tried with the token returned from graph api me/accounts for that page / Impersonating pages
Please tell me, short of making a bot to do the whole thing, is there any way to do this through the facebook api.
Thank you for any help you can provide.
If you don't want the people to see which company you are, then Facebook is the wrong platform for you!
I'm pretty sure, you also would violate the terms of Facebook (Developer).
See what your competitors are doing. The largest company in this business has named their app "Publisher". When users click on this a page will open up that doesn't say anything about who created the app - actually it doesn't say anything at all. You could also use the name "Publisher" for your Facebook publishing app - in Facebook app names don't have to be unique.

Is there a way for users of my website to invite their friends via Facebook Connect or the API?

Working with the Facebook API makes my ears bleed, but nonetheless I've got a specific problem here which I'm hoping someone can find a solution for. I'm using the Facebook PHP SDK to allow users of my website to link their FB account with their website account, so they can return later and log in with one click (by storing their OAuth tokens in my database). This is all working fine - what I now want is to be able to provide users with the facility to invite/recommend their friends to my site, using a form on my site.
I've tried FBML examples from many places including here - I've managed to get an invitation form to display but try as I might, all I can get it to generate is an invitation to my application, which isn't relevant. The app exists only so that I have an OAuth ID/secret to use with the Graph API. I want to invite the user's friends to my website, or at the very least to a Facebook Page plugging my website. But seemingly including this FBML on my page will only generate application invites.
My question: is there any way to accomplish this? Can I invite the user's friends to my site (ie. to a specific URL), or invite them to my FB Page? Am I approaching this from the wrong angle?
Any advice would be much appreciated. If you'd benefit from any further info, please let me know. Many thanks,
Biggs
Right. It turns out after much tearing of hair, the example I gave was the right one. The invite generates an "Application Invite", but this is not like other app invites. When the recipient clicks "Accept" they are sent to the URL you specify (in this case, my website). The "App" then disappears from their request page - it does not appear in their profile like a normal app. So a horribly nonsensical process but a positive outcome. Phew!
It seems like sending a Facebook message is the way to go at this point (Jan 2013).
https://developers.facebook.com/docs/reference/dialogs/send/
In general, applications on Facebook should use Requests when
communicating in game status (its your turn), inviting people to use
an application, or sending messages to multiple people.
FB.init({appId: 'YOUR_APP_ID', xfbml: true, cookie: true});
FB.ui({
method: 'send',
name: 'Check out this site!',
description: 'This is the best site ever!',
link: 'http://www.example.com/refer',
picture: 'http://www.example.com/image.jpg'
});
Why not go for this open source inviter which can get your work done quick . also if you are using a cms they might have already made the plugin for your cms. http://openinviter.com/

How to update a user's Facebook status?

I looked at many similar questions here at Stackoverflow.com and searched in Google but still could not find an answer, so I am posting this new question.
I have a 3rd party PHP5 website in which users can write a short message. I want to have the ability for the user to click a button to share that message as a facebook status.
It is in my understanding that this can be done using the Facebook API and Users.setStatus. I am not sure where to begin though - do I implement Facebook connect in my site? I don't need anything but that ability, so I don't need a facebook 'canvas' page.
Do I start an application?
Could someone point me in the right direction?
Thanks!
You need to:
Create an application, paying particular attention to the Connect settings
Integrate your site with Facebook
Connect
Check the user has granted the
application the status_update
extended permission, and if not
pop up the permission dialogue
Use the Status.set API call
The details for each step are far too big for one SO answer, but hopefully that's a "point in the right direction".
You'll need to create a facebook application in order to set someone's status with Users.setStatus. You should keep in mind that users will have to install your application and allow it to publish on their behalf before you can do so, though.
Check out developer.facebook.com to get started.

Categories