Several years ago I wrote an app that watches a file share for incoming PDFs, extracts all images from the PDF, creates an album on a Workplace page, and posts the images to that album. This has been working fine for years, but suddenly, on May 24th, it started failing with a 500 Internal Server Error when POSTing the images. Has there been some kind of change to the Graph API that can explain this? I'm basically POSTing (using WebClient.UploadFile) to https://graph.facebook.com/ALBUM_ID/photos?access_token=ACCESS_TOKEN. According to the Access Token Debugger at https://developers.facebook.com/tools/debug/accesstoken/ my app has the following Workplace Integration Permissions: read_group, write_group, link_unfurling. Any and all hints appreciated!
Looks like this may be caused by a known issue: https://developers.facebook.com/support/bugs/422557782692044/ Even though this refers to endpoint {groupId}/photos, according to this thread https://developers.facebook.com/support/bugs/1167214814122516/?join_id=f376b4bd2da9ff8, failing POSTs to {albumId}/photos are caused by the same issue. Also, the reported Last Known Working Date of May 23 2022 fits perfectly with our experiences.
Related
So there are two issues as I tried to solve a problem. Solving either of them will be fine for me
Issue 1:
I have been trying to get a program to show me the "order" of a certain comment. However I ran into an issue while implementing the API.
First of all I got the HTTP request from here: https://developers.google.com/youtube/v3/docs/comments/list
My HTTP was:
https://www.googleapis.com/youtube/v3/commentThreads?key=XXXXXXXXXXXXXXXXX&textFormat=plainText&part=id&videoId=26P7y8gEkiQ&maxResults=100&order=relavence
Now this will get me a list which has comments and their IDs. All fine except for one problem.
The order that appears in that page is not the same one you see on Youtube! Which is confusing since the relavence should cover that. But for some reason... it doesn't!
Any Clue what is going wrong here?
Edit: I have been trying to get the order of comments using C#/Vb.net. Problem was that getting the page directly (Youtube) didn't load the comments. now i used YT API but its not doing what it should have.
2nd Issue: I tried to load youtube Webpage using both HTTPRequest and a Webbrowser. Both do not load the comments for some reason. I used this approach to try and scrape the comments directly from the HTML document. The comments seem to be "loading" indefinitely.
Usually, comments in YouTube is sorted by "Top comments" or "Newest first". By using the API, you can get only comments ordered by time (Comment threads are ordered by time. This is the default behavior.) or relevance (Comment threads are ordered by relevance.). Here's a related thread which might help: Get comments thread for a YouTube video using api v3.0
I'm from a web forms background and learning angular with web API in C# and I have working site for adding/editing and deleting an object record. I know want to move on to more complex problems but struggling to know where to start!
The nearest I've found is this post which seems quite good but limited to images but struggling to follow as its a bit confusing knowing which responses work.
AngularJS .Net WebAPI Upload image and save to database (MSSQL).
What I would like to do very simply is have an Object with properties Name (string) and Logo (Logo stored in db binary field). From and angular view save the object (calling route of my Web API) including validating the name and saving an image and if it already has one, display the current image.
If anyone knows of a good simple example that will achieve that and ideally will work for any kind of file as some uploads in my site might be PDFs for example I would be hugely grateful.
I've used ng-file-upload in quite a few Angular projects with no problems. It has comprehensive documentation and many examples to get you started.
The have recipes for the server side stuff too, here is one for .NET
This answer will help on the controller side in terms of getting the uploaded files into a byte array that you can then insert into the database of your choice.
I have got into a strange situation and couldn't find a reason or resolution to it. I have a utility that creates a jpg image out of an HTML content. It is using WebBrowser.Navigate(url) and WebBrowser.DrawToBitmap() methods.
This utility has been working for a year or more by different clients on their servers. Now, one of them which could get desired images until few weeks ago, getting strange images. The image just shows the URL that I am passing to the Navigate() method. I could render the correct image from the same URL on my local machine. I checked the DocumentText property of the object and the contents was there and all the width and height was OK and no error is generated anywhere. Only the image doesn't make any sense. It is not related to the HTML contents and does the same behavior for all pages.
Does anyone knows what could be changed that caused this issue to happen? Although they have recently upgraded from Server 2008 to 2012, they claim that this rendering stopped before the upgrade. My code has not been touched. The project is built with C# and .NET 4.0.
Any help or comments is appreciated.
Behzad
It may be because of KB3057839 which has broken DrawToBitmap:
https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/9d690398-1f91-4fbd-82fa-4b663c3b558f/kb3057839-has-broken-windows-forms-controldrawtobitmap-when-called-from-application-launched-from?forum=windowsgeneraldevelopmentissue
Since this issue was introduced using the security update patch "KB3057839" . Microsoft has again released a few set of patches on July 14(Please check https://technet.microsoft.com/en-us/library/security/ms15-jul.aspx). The patch "KB3070102" resolves the issue and can be downloaded from https://technet.microsoft.com/library/security/MS15-073.
Hi I am trying to pull this string from courseweb.hopkinsschools.org and display it on my own asp.net application. I have been looking for a long time for a tutorial but nothing works. Any help would be greatly appreciated.
Picture of String needed:
String
When I started doing work with websites and interfacing with other websites, I originally wanted to do what you're talking about, reading the text from pages, because thats how we as people interface with computers and websites.
But that is not how computers should ever interface with other websites unless absolutely necessary.
Moodle has an API for such things like course management. Its kind of difficult to find information on, but its called Moodle Web Services if I remember quickly. I'll add a link back if I can find it.
What these will do is let you access moodle in a computer friendly way, ie. a way your computer can easily understand, instead of trying to read webpages.
Edit
Here are some resources to get you started:
https://docs.moodle.org/dev/Web_services
https://code.google.com/p/mnet-csharp/
https://delog.wordpress.com/2010/08/31/integrating-a-c-app-with-moodle-using-xml-rpc/
https://delog.wordpress.com/2010/09/08/integrating-c-app-with-moodle-2/
Hi there is a google page http://www.google.com/imghp where we can load image and search the internet if it exist on some pages, my question is how to do it from c# but not to get all images similar or sth, only pages where this image exist.
Previously, the way to do that was with Google's Image Search API, but it is now deprecated and won't be around much longer. You can still use it while it lasts.
As an alternative, there is Microsoft's Bing API, with the Image SourceType.
Edit: From the link I posted above:
The Google Image Search API has been officially deprecated as of May 26, 2011. It will continue to work as per our deprecation policy, but the number of requests you may make per day may be limited.
From the deprecation policy, section 1.3:
... For a period of three years after an announcement (the "Deprecation Period"), Google will use commercially reasonable efforts to continue to operate the Deprecated Version of the Service ...
So, you can expect the Google Image Search API to be around until May 26, 2014. You can enjoy it still for a couple of years.
Use TinEye:
https://www.tineye.com/commercial_api
https://api.tineye.com/documentation