Using the Facebook PHP Business SDK v10.0.0, I can create media objects on my Instagram page but is there a way to delete these objects without having to manually do so using the Creator Studio?
Related
I'm using the Google Photos Java API to create a small program to access the contents of a pre-existing album. I have been able to get code up and running that can report the album's name, and the media items it contains and so on, but not the text added between photos. I understand that the API considers these texts a form of enrichment and I can see there are functions for adding such enrichments to an album, but is there any way to list the enrichments already in an album? Or otherwise access the text a user has previous added between photos via the platform's desktop browser interface?
Unfortunately the Google Photos Library API does not provide a way to access existing album enrichments when accessing the contents of an album.
This has been filed as a feature request on the issue tracker for the API. You can 'star' it to draw attention to it and be notified of any updates: https://issuetracker.google.com/129050144
I need a list of videos uploaded via share dialogue by the user using my app. I can't see any app-specific data added to the video in graph API, however, uploaded videos on Facebook does have the tag of my app when they get added to the feed. I want to track videos uploaded by the user using my app's share dialogue. Can anyone point me in the right direction to achieve this?
This is not a supported feature by the Facebook API. So there is no way to get this done without help from the Facebook team.
I am new in Facebook App. and I just discovered Open Graph stories. I'm wondering - where should I insert action and object code? What are the steps in approval procedure?
I'm still new to this topic but found out some stuff (not completely yet!).
Via developer.facebook.com you have your app. You can add objects / actions to the left of the screen. The approval depends on the rights your app requires. Are you using the open graph for web or mobile app? Eventually you'll need to create a screencast (video) of how Facebook works in your app to get approved.
I'm creating a web app where I'd like to 1) upload a photo to an app-specific album on Facebook and then 2) share that photo as a LARGE item/image (not a thumbnail) on the users' Timeline. I know this is doable via User Generated Photo optional parameter but is there any other way to accomplish this for a web app?
There is nothing stopping web apps from publishing Open Graph actions with User Generated Photos. It's a simple process:
Setup Facebook auth on your site, your simplest option being to use the Javascript SDK with getLoginStatus. Make sure to request publish_actions permission from users.
Create an Open Graph action and your OG object types
When the user takes the appropriate action, make an API call of the following form (signed with the user access token and POST'd):
https://graph.facebook.com/me/YOUR_APP_NAMESPACE:YOUR_APP_ACTION?
YOUR_OBJECT_TYPE=YOUR_OBJECT_URL&
image[0][url]=YOUR_PHOTO_URL&
image[0][user_generated]=true
Step 1 is the hardest part and you'd have to do that anyway if you weren't going down the Open Graph actions route.
As an example, Instagram use took as their action and a photo as their object. Their objects URLs are simply the individual photo pages on the Instagram website. So their API POST call would look like this:
https://graph.facebook.com/me/instagram:took?
photo=http://instagram.com/p/ABCD1234/&
image[0][url]=http://distilleryimage.instagram.com/somerandomstring.jpg&
image[0][user_generated]=true
As mentioned in the User Generated Photos documentation this will show up as a large, full-width photo on the users Timeline and feed.
The simplest way to perform all these API calls from a web app is to use the Javascript SDK and the FB.api function. You won't need to use any server-side code at all in that case!
Just fill this code on your photo caption
"took a ##[0:[124024574287414:1:photo]] with #[124024574287414:0]"
(without double quote symbol)
It clickable to instagram website, It's my own custom code, I made it for a week :(
I'm creating website that creates a page for each person in our department with their contact information. The page can then be linked to from a qr code on a business card.
What is the best way to get the information out of their SharePoint profiles?
edit: I'm not very familiar with creating stuff in Visual Studio. I'm using Ruby on Rails for the website and I've read SharePoint has REST services which would work great but I can't seem to figure out how to access the User Profile information.
You don't need to use Visual Studio. You just need to be able to use a SOAP based web service from Ruby. The documentation for the User Profile web service is here:
http://msdn.microsoft.com/en-us/library/aa980957(office.12).aspx
You can use the SharePoint UserProfile WebService to achieve this.
http://msdn.microsoft.com/en-us/library/ms494053.aspx
Or, if you need something more specific, you could create your own WebService which access's the UserProfile API like this -
using (var site = new SPSite("http://yourserver"))
{
var userProfileManager =
new UserProfileManager(SPServiceContext.GetContext(site));
var userProfile =
userProfileManager.GetUserProfile("domain\accountName");
//iterate the userprofile properties
foreach (UserProfileValueCollection prop in userProfile)
Console.WriteLine(prop.Value);
}