zalopage / Zalo-Sdk-Php

All APIs that Zalo Page opens for a third-party to interact with their fans on Zalo Page
7 stars 2 forks source link

Page is disabled exception #3

Open kienntk opened 7 years ago

kienntk commented 7 years ago

Dear Zalo team,

I am so sorry because raise issue in PHP language when I am using .NET SDK but I am unable to find Zalo SDK for .Net on Github.

I am developing application to interact with my Zalo company page, but when I push text feed, it occured exception: -221 : page is disabled.

Here is my code:

try
            {
                ZaloServiceFactory factory = new ZaloServiceConfigure(pageId, secretKey).getZaloServiceFactory();

                ZaloMessageService messageService = factory.getZaloMessageService();

                ZaloSocialService socialService = factory.getZaloSocialService();

                socialService.pushTextFeed("TODAY IS A QUITE NICE DAY");
            }
            catch (ZaloSdkException ex)
            {
                Console.WriteLine("Err = " + ex.getErrorCode());
                Console.WriteLine("Mes = " + ex.getMessage());
                Console.ReadLine();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
                Console.ReadLine();
            }

Thank you very much for your help!

hoangthienan commented 6 years ago

Thank you @kienntk for using SDK and this repo unofficial Zalo Php SDK, As I've recently switched jobs, and I no longer use Zalo-SDK

Ref http://developer.page.zaloapp.com