App does not post to user's timeline - facebook-opengraph

I have developed an app using Facebook Graph API and Open Graph. I want my app to display custom data, when the user performs an action on my website. I read about open graph and added a open graph tags, etc. I have used the following code
$post_url = "https://graph.facebook.com/me/myappnamespace:mycustomaction?method=post".
"&mycustomobject=mywebpage".
"&access_token=".$_SESSION['access_token'];
Right now, whenever a user uses this app, it appears in his activity. But, it is not shared on his timeline. What permissions do i need to ask the user to be able to post to his own timeline? Currently, I am asking for publish_actions and publish_stream
What am I missing? I followed the exact steps in the tutorial, but am not able to post to the timeline using opengraph.

You no need to add any permissions except publish_actions and publish_stream. But you should add a new tag like fb:explicitly_shared. Set this as BOOL value. If you set true, it will show in the user's timeline, else it will not.

Related

Is is possible to get notifications when user submits data in ShinyApp?

Pretty self-explanatory, I am hoping to expand my app to push notifications when users upload new data.
Currently, the data is pushed to the server once user clicks a ‘submit’ btn. However, I have to go in the corresponding file to see if new uploads have been made.
I am thinking that I can add another observer (observeEvent) to the actionButton (submit) but the closest I can get is combining html to ‘sendmail’ to the admin account. This is obviously not automated and is little better than the user emailing admin themselves.
Does anyone have suggestions?

Can't get a value from an URL parameter

I'm trying to integrate the Google+ API in my web application which is developed in Angular2 so I can login to the home page using my Google account credentials and without the need to create a new account. I made a clickable html link that has the following href
https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=**********.apps.googleusercontent.com&scope=email&redirect_uri=http://localhost:3000/home
Once clicking on it, it demands for permission through my google account and when i authorize, it redirect me to the http://localhost:3000/home?code=4 the problem is that I need the whole code's value so that I can use it to get the Access Token but I don't know why the value appeared then it went hidden in less than a second and just keeping the first letter of the code (which is 4 in this case). The problem that if I go back to the previous page of the browser it will appear again.
Any help please? Or Is there any Function in Angular2 that tells the browser to go back to the previous page so I can get the whole code ?

Personalizing Content

i have a usecase where i want to personalize the content, that a visitor see based on his
information saved in Audience Manager.(i have added a keyword "personalize" for one of the contact "x").For this
I have created a a target group, defined its characteristics and tracking keys(defined personalize > 0).
After this, i associated the Target group with a component presentation and Published the Page
When i logged in with "x" credentials i was unable to see that component presentation on the Page.
Please Help!
First steps:
Validate the user has the value for personalize in the Broker DB
Check you have the WAI module in your web app
Look at the published page, and validate the conditions are in the output
Check your target type is set to an appropriate language (not none)
Check your storage bindings are correct in Deployer and web app
If that reveals nothing, please update your post with more info.
Finally, consider posting this at: https://tridion.stackexchange.com/grant-beta-access?key=63880f9cbf452c62f726770209533893

How to make a box with user options in facebook open graph

I have an online magazine with news articles and i want to make an open graph action that everytime a user reads an article a story to post in his timeline.
I have all the nececery open graph tags in my urls and a login button with publish_actions scope.
I'm one step away from submitting the action for approval but i still cant figure out one thing.
The facebook's documentation says that i need to give users an option to stop auto publishing or remove the app etc. something like the image in the middle of this page http://developers.facebook.com/docs/opengraph/actions/builtin/#read .
I saw it also on yahoo and its exacly the same.
How can i make something like this in my site? The code is ready somewhere or i have to write it myself?
Thanks in advance!
The permission remove, or just a switch to stop publish of action and the delete article functions will have to be developed by you.
I am working on the same things for my app.
creating user CP control panel containing, revoke perms buttons.
a user CP to swich publishing on and off, via true/false in mysql
an array of app activities with delete buttons.

How do I allow users to display LinkedIn profiles on my site?

I have a site (using PHP and JavaScript with jQuery) which allows users to display a profile, and I would like them to have the option of simply importing their LinkedIn profile, if they have one, rather than having to type everything in again.
I'm not sure what the best approach is here... I've read some of the LinkedIn API documentation, but I'm not even really sure which bit I need to look at.
The process should be:
User goes to profile management page
User is shown a checkbox saying "use my LinkedIn profile", and a textarea. If they don't want to type their profile into the checkbox, they check the checkbox, and somehow their Linked In profile is retrieved.
The LinkedIn profile is stored (or some kind of id is stored), so that the profile can be retrieved by anyone else at any time.
I'm not very familiar with the LinkedIn API, or with the site itself, so I'm not even sure what's possible. Does this sound possible, and if so, where do I start?
You can start with the User Profile tutorial here:
http://developer.linkedinlabs.com/tutorials/jsapi_profile/
The example uses jquery so it should be pretty easy for you to extend this to do what you want.

Resources